diff options
| author | 2022-07-30 17:21:47 +0100 | |
|---|---|---|
| committer | 2022-07-30 19:15:41 +0100 | |
| commit | 3c455a8511f8c72552afb6ebe35a8e7c9b9af979 (patch) | |
| tree | 603c14aa8d8dfafb931cf3ca1b3503fdfc979528 /src/users.cpp | |
| parent | Add support for clearing the target of a dynamic_reference. (diff) | |
Modernize various minor legacy C++isms.
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index 66709d06e..ec47d7d06 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -844,9 +844,9 @@ void LocalUser::Send(ClientProtocol::Event& protoev, ClientProtocol::MessageList { // Modules can personalize the messages sent per user for the event protoev.GetMessagesForUser(this, msglist); - for (ClientProtocol::MessageList::const_iterator i = msglist.begin(); i != msglist.end(); ++i) + for (const auto& msg : msglist) { - ClientProtocol::Message& curr = **i; + ClientProtocol::Message& curr = *msg; ModResult res; FIRST_MOD_RESULT(OnUserWrite, res, (this, curr)); if (res != MOD_RES_DENY) |
