diff options
author | 2015-12-09 21:14:13 +0100 | |
---|---|---|
committer | 2015-12-09 21:14:13 +0100 | |
commit | 3414b0166e77c5353373d655e3def0251571722d (patch) | |
tree | 9439420ee9813653a4b05946078c2f6958a9d60c /src/emu/ui/filemngr.cpp | |
parent | 00a496face05336b5209ab006ead2a0b1b758c19 (diff) |
tagmap_t to std::unordered_map or std::unordered_set where applicable (nw)
Diffstat (limited to 'src/emu/ui/filemngr.cpp')
-rw-r--r-- | src/emu/ui/filemngr.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/emu/ui/filemngr.cpp b/src/emu/ui/filemngr.cpp index 6af12895186..ce94f437120 100644 --- a/src/emu/ui/filemngr.cpp +++ b/src/emu/ui/filemngr.cpp @@ -114,11 +114,11 @@ void ui_menu_file_manager::populate() // cycle through all devices for this system device_iterator iter(machine().root_device()); - tagmap_t<UINT8> devtags; + std::unordered_set<std::string> devtags; for (device_t *dev = iter.first(); dev != nullptr; dev = iter.next()) { bool tag_appended = false; - if (devtags.add(dev->tag(), 1, FALSE) == TMERR_DUPLICATE) + if (!devtags.insert(dev->tag()).second) continue; // check whether it owns an image interface @@ -131,7 +131,7 @@ void ui_menu_file_manager::populate() { // if it is a children device, and not something further down the device tree, we want it in the menu! if (strcmp(scan->device().owner()->tag(), dev->tag()) == 0) - if (devtags.add(scan->device().tag(), 1, FALSE) != TMERR_DUPLICATE) + if (devtags.insert(scan->device().tag()).second) { // check whether we already had some devices with the same owner: if not, output the owner tag! if (!tag_appended) |