summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/vtech/memexp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-04 07:02:00 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-04 07:02:00 +0100
commit68f961927a156c47cb444c1f66258a89342d0205 (patch)
treeb0d5753d5658e62ecca72d37af2f79dfc7f808bb /src/devices/bus/vtech/memexp
parent029a3003631093ffaf1a0318e0c58b3e173403a3 (diff)
clang-modernize part 2
Diffstat (limited to 'src/devices/bus/vtech/memexp')
-rw-r--r--src/devices/bus/vtech/memexp/floppy.cpp4
-rw-r--r--src/devices/bus/vtech/memexp/memexp.cpp6
-rw-r--r--src/devices/bus/vtech/memexp/rs232.cpp2
3 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/vtech/memexp/floppy.cpp b/src/devices/bus/vtech/memexp/floppy.cpp
index a72b19fde62..afe88fce06a 100644
--- a/src/devices/bus/vtech/memexp/floppy.cpp
+++ b/src/devices/bus/vtech/memexp/floppy.cpp
@@ -115,7 +115,7 @@ void floppy_controller_device::device_reset()
m_slot->m_io->install_device(0x10, 0x1f, *this, &floppy_controller_device::map);
m_latch = 0x00;
- m_floppy = NULL;
+ m_floppy = nullptr;
m_current_cyl = 0;
m_shifter = 0x00;
m_latching_inverter = false;
@@ -141,7 +141,7 @@ WRITE8_MEMBER(floppy_controller_device::latch_w)
UINT8 diff = m_latch ^ data;
m_latch = data;
- floppy_image_device *newflop = NULL;
+ floppy_image_device *newflop = nullptr;
if(m_latch & 0x10)
newflop = m_floppy0->get_device();
else if(m_latch & 0x80)
diff --git a/src/devices/bus/vtech/memexp/memexp.cpp b/src/devices/bus/vtech/memexp/memexp.cpp
index d41b2d073b7..5b547103645 100644
--- a/src/devices/bus/vtech/memexp/memexp.cpp
+++ b/src/devices/bus/vtech/memexp/memexp.cpp
@@ -29,9 +29,9 @@ const device_type MEMEXP_SLOT = &device_creator<memexp_slot_device>;
memexp_slot_device::memexp_slot_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock) :
device_t(mconfig, MEMEXP_SLOT, "Memory Expansion Slot", tag, owner, clock, "memexp_slot", __FILE__),
device_slot_interface(mconfig, *this),
- m_program(NULL),
- m_io(NULL),
- m_cart(NULL),
+ m_program(nullptr),
+ m_io(nullptr),
+ m_cart(nullptr),
m_int_handler(*this),
m_nmi_handler(*this),
m_reset_handler(*this)
diff --git a/src/devices/bus/vtech/memexp/rs232.cpp b/src/devices/bus/vtech/memexp/rs232.cpp
index bd74662c9f5..42e281151b1 100644
--- a/src/devices/bus/vtech/memexp/rs232.cpp
+++ b/src/devices/bus/vtech/memexp/rs232.cpp
@@ -35,7 +35,7 @@ const rom_entry *rs232_interface_device::device_rom_region() const
//-------------------------------------------------
static MACHINE_CONFIG_FRAGMENT( rs232 )
- MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, NULL)
+ MCFG_RS232_PORT_ADD("rs232", default_rs232_devices, nullptr)
MCFG_RS232_RXD_HANDLER(WRITELINE(rs232_interface_device, rs232_rx_w))
MACHINE_CONFIG_END