mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-29 19:20:36 +00:00
LogWindow: Use emplace instead of push for the message queue
Same thing.
This commit is contained in:
parent
a7b19e23b3
commit
d8f72e9cda
@ -355,5 +355,5 @@ void CLogWindow::Log(LogTypes::LOG_LEVELS level, const char* text)
|
||||
if (msgQueue.size() >= MSGQUEUE_MAX_SIZE)
|
||||
msgQueue.pop();
|
||||
|
||||
msgQueue.push(std::make_pair(u8(level), StrToWxStr(text)));
|
||||
msgQueue.emplace(static_cast<u8>(level), StrToWxStr(text));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user