diff options
| author | 2014-12-10 16:57:18 +0100 | |
|---|---|---|
| committer | 2014-12-10 16:57:18 +0100 | |
| commit | bd6ca75281a84d42b8643a805ebdff82b020419e (patch) | |
| tree | c705f3784b9778e8e96954d99b3b6c28081bb689 /src/modules/m_callerid.cpp | |
| parent | m_callerid Add typedefs for containers in callerid_data (diff) | |
m_callerid Change CallerIdDataSet (wholistsme) to be a vector
Diffstat (limited to 'src/modules/m_callerid.cpp')
| -rw-r--r-- | src/modules/m_callerid.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_callerid.cpp b/src/modules/m_callerid.cpp index 850ce7e40..add1d929e 100644 --- a/src/modules/m_callerid.cpp +++ b/src/modules/m_callerid.cpp @@ -38,7 +38,7 @@ class callerid_data { public: typedef std::set<User*> UserSet; - typedef std::list<callerid_data*> CallerIdDataSet; + typedef std::vector<callerid_data*> CallerIdDataSet; time_t lastnotify; @@ -139,7 +139,7 @@ struct CallerIDExtInfo : public ExtensionItem continue; // shouldn't happen, but oh well. } - if (!stdalgo::erase(targ->wholistsme, dat)) + if (!stdalgo::vector::swaperase(targ->wholistsme, dat)) ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "ERROR: Inconsistency detected in callerid state, please report (2)"); } delete dat; @@ -320,7 +320,7 @@ public: return false; } - if (!stdalgo::erase(dat2->wholistsme, dat)) + if (!stdalgo::vector::swaperase(dat2->wholistsme, dat)) ServerInstance->Logs->Log(MODNAME, LOG_DEFAULT, "ERROR: Inconsistency detected in callerid state, please report (4)"); |
