diff options
| author | 2021-04-18 04:37:51 +0100 | |
|---|---|---|
| committer | 2021-04-18 04:58:28 +0100 | |
| commit | 569324feeecea939854e45bbd44495b849fcfd59 (patch) | |
| tree | 38008340f746112ab17ebb8368f090aeac10aabd /src/modules/extra/m_pgsql.cpp | |
| parent | Make 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.cpp | 2 |
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 |
