mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-09-24 10:18:45 +00:00
Use emplace() instead of insert() where applicable for maps.
This commit is contained in:
parent
1120132d26
commit
daa205990f
12 changed files with 41 additions and 30 deletions
|
@ -71,7 +71,7 @@ void ClearMessages()
|
|||
// On-Screen Display Callbacks
|
||||
void AddCallback(CallbackType type, Callback cb)
|
||||
{
|
||||
s_callbacks.insert(std::pair<CallbackType, Callback>(type, cb));
|
||||
s_callbacks.emplace(type, cb);
|
||||
}
|
||||
|
||||
void DoCallbacks(CallbackType type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue