From d439d4a4865e6c1bbabbcf9ff16c5dfbf8a782d4 Mon Sep 17 00:00:00 2001 From: Luke Dashjr Date: Tue, 10 Oct 2023 01:57:23 +0000 Subject: [PATCH] httprpc: Optimise -rpcauthfile loading slightly --- src/httprpc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/httprpc.cpp b/src/httprpc.cpp index 87f9c7145b..c010ea479a 100644 --- a/src/httprpc.cpp +++ b/src/httprpc.cpp @@ -334,7 +334,7 @@ static bool InitRPCAuthentication() } } if (gArgs.GetArg("-rpcauthfile", "") != "") { - for (std::string path : gArgs.GetArgs("-rpcauthfile")) { + for (const std::string& path : gArgs.GetArgs("-rpcauthfile")) { std::ifstream file; file.open(path); if (!file.is_open()) continue;