aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2021-04-18 04:37:51 +0100
committerGravatar Sadie Powell2021-04-18 04:58:28 +0100
commit569324feeecea939854e45bbd44495b849fcfd59 (patch)
tree38008340f746112ab17ebb8368f090aeac10aabd /src/users.cpp
parentMake the reason parameter to PartUser const. (diff)
Migrate collections from insert to emplace.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 83b28ffa1..b373f9f93 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -94,7 +94,7 @@ User::User(const std::string& uid, Server* srv, Type type)
// Do not insert FakeUsers into the uuidlist so FindUUID() won't return them which is the desired behavior
if (type != User::TYPE_SERVER)
{
- if (!ServerInstance->Users.uuidlist.insert(std::make_pair(uuid, this)).second)
+ if (!ServerInstance->Users.uuidlist.emplace(uuid, this).second)
throw CoreException("Duplicate UUID in User constructor: " + uuid);
}
}