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/modules/m_vhost.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/m_vhost.cpp') diff --git a/src/modules/m_vhost.cpp b/src/modules/m_vhost.cpp index d14d3cf41..abb16d16b 100644 --- a/src/modules/m_vhost.cpp +++ b/src/modules/m_vhost.cpp @@ -116,7 +116,7 @@ class ModuleVHost : public Module } CustomVhost vhost(username, pass, hash, mask); - newhosts.insert(std::make_pair(username, vhost)); + newhosts.emplace(username, vhost); } cmd.vhosts.swap(newhosts); -- cgit v1.3.1-10-gc9f91