summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/drivenum.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2016-10-21 11:54:18 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2016-10-21 11:54:18 +0200
commita291e77b2cfc4ce1b780db0d8fa664fb8094d365 (patch)
tree88f0085d143b3e93862482de364559aa9946b1e6 /src/emu/drivenum.cpp
parent5bdb4f7a8974c550608c83b8872e89259211496e (diff)
some bool <-> int not needed conversions, also cleaned drivenum.* was using memset for clearing vector (nw)
Diffstat (limited to 'src/emu/drivenum.cpp')
-rw-r--r--src/emu/drivenum.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/emu/drivenum.cpp b/src/emu/drivenum.cpp
index 450790eb55a..5f67013c603 100644
--- a/src/emu/drivenum.cpp
+++ b/src/emu/drivenum.cpp
@@ -135,8 +135,6 @@ driver_enumerator::driver_enumerator(emu_options &options)
m_included(s_driver_count),
m_config(s_driver_count)
{
- memset(&m_included[0], 0, s_driver_count);
- memset(&m_config[0], 0, s_driver_count*sizeof(m_config[0]));
include_all();
}
@@ -148,8 +146,6 @@ driver_enumerator::driver_enumerator(emu_options &options, const char *string)
m_included(s_driver_count),
m_config(s_driver_count)
{
- memset(&m_included[0], 0, s_driver_count);
- memset(&m_config[0], 0, s_driver_count*sizeof(m_config[0]));
filter(string);
}
@@ -161,8 +157,6 @@ driver_enumerator::driver_enumerator(emu_options &options, const game_driver &dr
m_included(s_driver_count),
m_config(s_driver_count)
{
- memset(&m_included[0], 0, s_driver_count);
- memset(&m_config[0], 0, s_driver_count*sizeof(m_config[0]));
filter(driver);
}
@@ -247,7 +241,7 @@ int driver_enumerator::filter(const game_driver &driver)
void driver_enumerator::include_all()
{
- memset(&m_included[0], 1, sizeof(m_included[0]) * s_driver_count);
+ std::fill(m_included.begin(), m_included.end(), true);
m_filtered_count = s_driver_count;
// always exclude the empty driver