aboutsummaryrefslogtreecommitdiff
path: root/src/timer.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/timer.cpp
parentMake the reason parameter to PartUser const. (diff)
Migrate collections from insert to emplace.
Diffstat (limited to 'src/timer.cpp')
-rw-r--r--src/timer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timer.cpp b/src/timer.cpp
index c499b7991..fefc4cd08 100644
--- a/src/timer.cpp
+++ b/src/timer.cpp
@@ -83,5 +83,5 @@ void TimerManager::DelTimer(Timer* t)
void TimerManager::AddTimer(Timer* t)
{
- Timers.insert(std::make_pair(t->GetTrigger(), t));
+ Timers.emplace(t->GetTrigger(), t);
}