Use map::emplace instead of inserting std::pair (C++11)

This commit is contained in:
Allan Odgaard
2013-09-05 20:45:41 +02:00
parent ca98e2f86d
commit 1c308c810d
66 changed files with 186 additions and 186 deletions

View File

@@ -67,7 +67,7 @@ static std::multimap<oak::uuid_t, HTMLOutputWindowController*> Windows;
Windows.erase(runner->uuid());
runner = aRunner;
Windows.insert(std::make_pair(runner->uuid(), self));
Windows.emplace(runner->uuid(), self);
self.window.title = [NSString stringWithCxxString:runner->name()];