CGuiWidgetIdDB: Remove redundant std::make_pair funcs

Same behavior, less code.
This commit is contained in:
Lioncash 2020-03-26 03:55:25 -04:00
parent 74600588fa
commit fcf70aeb2a
1 changed files with 2 additions and 2 deletions

View File

@ -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;