diff options
| author | 2023-01-10 23:02:45 +0000 | |
|---|---|---|
| committer | 2023-01-10 23:30:34 +0000 | |
| commit | b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch) | |
| tree | 3319a65d5472ec30780560003264fa815dbfd711 /src/configreader.cpp | |
| parent | Fix some unnecessary string copies. (diff) | |
Qualify auto correctly in all cases.
Diffstat (limited to 'src/configreader.cpp')
| -rw-r--r-- | src/configreader.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp index 97a483411..1c414a27b 100644 --- a/src/configreader.cpp +++ b/src/configreader.cpp @@ -440,7 +440,7 @@ void ServerConfig::Apply(ServerConfig* old, const std::string& useruid) } } - auto user = ServerInstance->Users.FindUUID(useruid); + auto* user = ServerInstance->Users.FindUUID(useruid); if (!valid) { @@ -576,7 +576,7 @@ ServerConfig::TagList ServerConfig::ConfTags(const std::string& tag, std::option std::string ServerConfig::Escape(const std::string& str) { std::stringstream escaped; - for (const auto& chr : str) + for (const auto chr : str) { switch (chr) { @@ -656,7 +656,7 @@ void ConfigReaderThread::OnStop() */ ServerInstance->Users.RehashCloneCounts(); - auto user = ServerInstance->Users.FindUUID(UUID); + auto* user = ServerInstance->Users.FindUUID(UUID); ConfigStatus status(user); for (const auto& [modname, mod] : ServerInstance->Modules.GetModules()) |
