mirror of
https://github.com/anope/anope.git
synced 2026-07-09 07:23:14 +02:00
Use emplace() instead of insert(std::make_pair()).
This commit is contained in:
+1
-1
@@ -80,7 +80,7 @@ Module *Timer::GetOwner() const
|
||||
|
||||
void TimerManager::AddTimer(Timer *t)
|
||||
{
|
||||
Timers.insert(std::make_pair(t->GetTimer(), t));
|
||||
Timers.emplace(t->GetTimer(), t);
|
||||
}
|
||||
|
||||
void TimerManager::DelTimer(Timer *t)
|
||||
|
||||
Reference in New Issue
Block a user