Launcher: use emplace_back

Avoid copy.
This commit is contained in:
Kawe Mazidjatari 2025-02-09 00:42:40 +01:00
parent d36ea4d769
commit f0f90e5c1b

View File

@ -871,7 +871,7 @@ void CSurface::ReloadPlaylists(Forms::Control* pSender)
//----------------------------------------------------------------------------- //-----------------------------------------------------------------------------
void CSurface::AddLog(const LogType_t type, const char* const pszText) void CSurface::AddLog(const LogType_t type, const char* const pszText)
{ {
m_LogList.push_back(LogList_t(type, pszText)); m_LogList.emplace_back(type, pszText);
// Clamp the log list size, as we cannot fit more elements than // Clamp the log list size, as we cannot fit more elements than
// 8 in the console window. // 8 in the console window.