summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/menu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/frontend/mame/ui/menu.cpp')
-rw-r--r--src/frontend/mame/ui/menu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/frontend/mame/ui/menu.cpp b/src/frontend/mame/ui/menu.cpp
index 04a7a271609..0dced188c9d 100644
--- a/src/frontend/mame/ui/menu.cpp
+++ b/src/frontend/mame/ui/menu.cpp
@@ -361,11 +361,11 @@ void menu::item_append(std::string &&text, std::string &&subtext, UINT32 flags,
auto index = item.size();
if (!item.empty())
{
- item.insert(item.end() - 1, pitem);
+ item.emplace(item.end() - 1, std::move(pitem));
--index;
}
else
- item.push_back(pitem);
+ item.emplace_back(std::move(pitem));
// update the selection if we need to
if (resetpos == index || (resetref != nullptr && resetref == ref))