diff options
Diffstat (limited to 'src/devices/machine/saa1043.cpp')
-rw-r--r-- | src/devices/machine/saa1043.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/devices/machine/saa1043.cpp b/src/devices/machine/saa1043.cpp index 48b1f168639..7e480ddcf4b 100644 --- a/src/devices/machine/saa1043.cpp +++ b/src/devices/machine/saa1043.cpp @@ -12,17 +12,18 @@ #include "emu.h" #include "saa1043.h" +#include <algorithm> + + DEFINE_DEVICE_TYPE(SAA1043, saa1043_device, "saa1043", "Philips SAA1043") /*static*/ const uint32_t saa1043_device::s_line_counts[4] = { 624, 624, 524, 524 }; saa1043_device::saa1043_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) : device_t(mconfig, SAA1043, tag, owner, clock) - , m_outputs{ *this, *this, *this, *this, *this, *this, - *this, *this, *this, *this, *this, *this, - *this, *this, *this, *this, *this, *this } + , m_outputs(*this) { - memset(m_outputs_hooked, 0, sizeof(bool) * OUT_COUNT); + std::fill(std::begin(m_outputs_hooked), std::end(m_outputs_hooked), false); } void saa1043_device::device_start() |