mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
Launcher: use emplace_back
Avoid copy.
This commit is contained in:
parent
d36ea4d769
commit
f0f90e5c1b
@ -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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user