aboutsummaryrefslogtreecommitdiff
path: root/src/modules/extra/m_pgsql.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/modules/extra/m_pgsql.cpp
parentMake the reason parameter to PartUser const. (diff)
Migrate collections from insert to emplace.
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
-rw-r--r--src/modules/extra/m_pgsql.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index 38b07b52e..9f512a21a 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -559,7 +559,7 @@ class ModulePgSQL : public Module
SQLConn* conn = new SQLConn(this, tag);
if (conn->status != DEAD)
{
- conns.insert(std::make_pair(id, conn));
+ conns.emplace(id, conn);
ServerInstance->Modules.AddService(*conn);
}
// If the connection is dead it has already been queued for culling