summaryrefslogtreecommitdiffstats
path: root/src/frontend/mame/ui/menu.cpp
diff options
context:
space:
mode:
author Nathan Woods <npwoods@mess.org>2016-06-30 06:03:54 -0400
committer Nathan Woods <npwoods@mess.org>2016-06-30 06:03:54 -0400
commita21f23357a8b1fff6730ca6ac1a8be2ea08ae266 (patch)
treeb5d17adaab7b771393c3a742de4814a9fa5be8b1 /src/frontend/mame/ui/menu.cpp
parent749e182a806d9e234e075f147cf282b5063abc45 (diff)
Usage of emplace[_back]() as per cuavas
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))