From 7010a92426d2c3ab0cea5ba0d36a04bc6b52349f Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Mon, 15 Dec 2014 17:48:52 +0100 Subject: Change type of some associative containers to their flat versions, including Extensible storage --- src/modules/extra/m_ldap.cpp | 4 ++-- src/modules/extra/m_mssql.cpp | 2 +- src/modules/extra/m_mysql.cpp | 2 +- src/modules/extra/m_pgsql.cpp | 2 +- src/modules/extra/m_sqlite3.cpp | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'src/modules/extra') diff --git a/src/modules/extra/m_ldap.cpp b/src/modules/extra/m_ldap.cpp index d696fadfb..10469f370 100644 --- a/src/modules/extra/m_ldap.cpp +++ b/src/modules/extra/m_ldap.cpp @@ -532,7 +532,7 @@ class LDAPService : public LDAPProvider, public SocketThread class ModuleLDAP : public Module { - typedef std::map ServiceMap; + typedef insp::flat_map ServiceMap; ServiceMap LDAPServices; public: @@ -610,7 +610,7 @@ class ModuleLDAP : public Module ~ModuleLDAP() { - for (std::map::iterator i = LDAPServices.begin(); i != LDAPServices.end(); ++i) + for (ServiceMap::iterator i = LDAPServices.begin(); i != LDAPServices.end(); ++i) { LDAPService* conn = i->second; conn->join(); diff --git a/src/modules/extra/m_mssql.cpp b/src/modules/extra/m_mssql.cpp index 725a647c0..0e8c8cf55 100644 --- a/src/modules/extra/m_mssql.cpp +++ b/src/modules/extra/m_mssql.cpp @@ -34,7 +34,7 @@ class SQLConn; class MsSQLResult; class ModuleMsSQL; -typedef std::map ConnMap; +typedef insp::flat_map ConnMap; typedef std::deque ResultQueue; unsigned long count(const char * const str, char a) diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index 1002a98ba..1cb3635bb 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -89,7 +89,7 @@ struct RQueueItem RQueueItem(SQLQuery* Q, MySQLresult* R) : q(Q), r(R) {} }; -typedef std::map ConnMap; +typedef insp::flat_map ConnMap; typedef std::deque QueryQueue; typedef std::deque ResultQueue; diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index b89633ede..1e73c0143 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -41,7 +41,7 @@ class SQLConn; class ModulePgSQL; -typedef std::map ConnMap; +typedef insp::flat_map ConnMap; /* CREAD, Connecting and wants read event * CWRITE, Connecting and wants write event diff --git a/src/modules/extra/m_sqlite3.cpp b/src/modules/extra/m_sqlite3.cpp index e5c8f600a..05203da39 100644 --- a/src/modules/extra/m_sqlite3.cpp +++ b/src/modules/extra/m_sqlite3.cpp @@ -40,7 +40,7 @@ /* $LinkerFlags: pkgconflibs("sqlite3","/libsqlite3.so","-lsqlite3") */ class SQLConn; -typedef std::map ConnMap; +typedef insp::flat_map ConnMap; class SQLite3Result : public SQLResult { -- cgit v1.2.3