diff options
| author | 2023-01-10 23:02:45 +0000 | |
|---|---|---|
| committer | 2023-01-10 23:30:34 +0000 | |
| commit | b2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch) | |
| tree | 3319a65d5472ec30780560003264fa815dbfd711 /src/users.cpp | |
| parent | Fix some unnecessary string copies. (diff) | |
Qualify auto correctly in all cases.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp index 9933895dc..ed2d00112 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -324,7 +324,7 @@ bool User::OperLogin(const std::shared_ptr<OperAccount>& account, bool automatic // 2. Set user mode o (oper) *WITHOUT* calling the mode handler. // 3. Add the user to the operator list. oper = account; - auto opermh = ServerInstance->Modes.FindMode('o', MODETYPE_USER); + auto* opermh = ServerInstance->Modes.FindMode('o', MODETYPE_USER); if (opermh) { SetMode(opermh, true); @@ -369,7 +369,7 @@ void User::OperLogout() } ServerInstance->Modes.Process(this, nullptr, this, changelist); - auto opermh = ServerInstance->Modes.FindMode('o', MODETYPE_USER); + auto* opermh = ServerInstance->Modes.FindMode('o', MODETYPE_USER); if (opermh) SetMode(opermh, false); } @@ -724,7 +724,7 @@ void LocalUser::Send(ClientProtocol::Event& protoev, ClientProtocol::MessageList { // Modules can personalize the messages sent per user for the event protoev.GetMessagesForUser(this, msglist); - for (const auto& msg : msglist) + for (auto* msg : msglist) { ClientProtocol::Message& curr = *msg; ModResult res; @@ -1115,7 +1115,7 @@ void OperType::Configure(const std::shared_ptr<ConfigTag>& tag, bool merge) auto modefn = [&tag](ModeParser::ModeStatus& modes, const std::string& key) { bool adding = true; - for (const auto& chr : tag->getString(key)) + for (const auto chr : tag->getString(key)) { if (chr == '+' || chr == '-') adding = (chr == '+'); |
