From 569324feeecea939854e45bbd44495b849fcfd59 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 18 Apr 2021 04:37:51 +0100 Subject: Migrate collections from insert to emplace. --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') 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); } } -- cgit v1.3.1-10-gc9f91