From f0f90e5c1b842fb3c063a3bb96f3d655d1a3ac4e Mon Sep 17 00:00:00 2001 From: Kawe Mazidjatari <48657826+Mauler125@users.noreply.github.com> Date: Sun, 9 Feb 2025 00:42:40 +0100 Subject: [PATCH] Launcher: use emplace_back Avoid copy. --- src/sdklauncher/basepanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdklauncher/basepanel.cpp b/src/sdklauncher/basepanel.cpp index 8a4387d5..f83f99f3 100644 --- a/src/sdklauncher/basepanel.cpp +++ b/src/sdklauncher/basepanel.cpp @@ -871,7 +871,7 @@ void CSurface::ReloadPlaylists(Forms::Control* pSender) //----------------------------------------------------------------------------- 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 // 8 in the console window.