aboutsummaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
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);
}
}