From fcf70aeb2a5085d0f4a5aa37ed29477be2673c69 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 26 Mar 2020 03:55:25 -0400 Subject: [PATCH] CGuiWidgetIdDB: Remove redundant std::make_pair funcs Same behavior, less code. --- Runtime/GuiSys/CGuiWidgetIdDB.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/GuiSys/CGuiWidgetIdDB.cpp b/Runtime/GuiSys/CGuiWidgetIdDB.cpp index 162ee1351..075534f9b 100644 --- a/Runtime/GuiSys/CGuiWidgetIdDB.cpp +++ b/Runtime/GuiSys/CGuiWidgetIdDB.cpp @@ -21,7 +21,7 @@ s16 CGuiWidgetIdDB::AddWidget(std::string_view name, s16 id) { if (findId == -1) { if (id >= x14_lastPoolId) x14_lastPoolId = id; - x0_dbMap.emplace(std::make_pair(name, id)); + x0_dbMap.emplace(name, id); findId = id; } return findId; @@ -31,7 +31,7 @@ s16 CGuiWidgetIdDB::AddWidget(std::string_view name) { s16 findId = FindWidgetID(name); if (findId == -1) { ++x14_lastPoolId; - x0_dbMap.emplace(std::make_pair(name, x14_lastPoolId)); + x0_dbMap.emplace(name, x14_lastPoolId); findId = x14_lastPoolId; } return findId;