mirror of https://github.com/AxioDL/metaforce.git
CGuiWidgetIdDB: Remove redundant std::make_pair funcs
Same behavior, less code.
This commit is contained in:
parent
74600588fa
commit
fcf70aeb2a
|
@ -21,7 +21,7 @@ s16 CGuiWidgetIdDB::AddWidget(std::string_view name, s16 id) {
|
||||||
if (findId == -1) {
|
if (findId == -1) {
|
||||||
if (id >= x14_lastPoolId)
|
if (id >= x14_lastPoolId)
|
||||||
x14_lastPoolId = id;
|
x14_lastPoolId = id;
|
||||||
x0_dbMap.emplace(std::make_pair(name, id));
|
x0_dbMap.emplace(name, id);
|
||||||
findId = id;
|
findId = id;
|
||||||
}
|
}
|
||||||
return findId;
|
return findId;
|
||||||
|
@ -31,7 +31,7 @@ s16 CGuiWidgetIdDB::AddWidget(std::string_view name) {
|
||||||
s16 findId = FindWidgetID(name);
|
s16 findId = FindWidgetID(name);
|
||||||
if (findId == -1) {
|
if (findId == -1) {
|
||||||
++x14_lastPoolId;
|
++x14_lastPoolId;
|
||||||
x0_dbMap.emplace(std::make_pair(name, x14_lastPoolId));
|
x0_dbMap.emplace(name, x14_lastPoolId);
|
||||||
findId = x14_lastPoolId;
|
findId = x14_lastPoolId;
|
||||||
}
|
}
|
||||||
return findId;
|
return findId;
|
||||||
|
|
Loading…
Reference in New Issue