diff options
author | 2015-12-04 07:02:00 +0100 | |
---|---|---|
committer | 2015-12-04 07:02:00 +0100 | |
commit | 68f961927a156c47cb444c1f66258a89342d0205 (patch) | |
tree | b0d5753d5658e62ecca72d37af2f79dfc7f808bb /src/devices/bus/astrocde | |
parent | 029a3003631093ffaf1a0318e0c58b3e173403a3 (diff) |
clang-modernize part 2
Diffstat (limited to 'src/devices/bus/astrocde')
-rw-r--r-- | src/devices/bus/astrocde/slot.cpp | 10 | ||||
-rw-r--r-- | src/devices/bus/astrocde/slot.h | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/bus/astrocde/slot.cpp b/src/devices/bus/astrocde/slot.cpp index 99f6e2609b2..74071506c90 100644 --- a/src/devices/bus/astrocde/slot.cpp +++ b/src/devices/bus/astrocde/slot.cpp @@ -27,7 +27,7 @@ const device_type ASTROCADE_CART_SLOT = &device_creator<astrocade_cart_slot_devi device_astrocade_cart_interface::device_astrocade_cart_interface(const machine_config &mconfig, device_t &device) : device_slot_card_interface(mconfig, device), - m_rom(NULL), + m_rom(nullptr), m_rom_size(0) { } @@ -47,7 +47,7 @@ device_astrocade_cart_interface::~device_astrocade_cart_interface() void device_astrocade_cart_interface::rom_alloc(UINT32 size, const char *tag) { - if (m_rom == NULL) + if (m_rom == nullptr) { m_rom = device().machine().memory().region_alloc(std::string(tag).append(ASTROCADESLOT_ROM_REGION_TAG).c_str(), size, 1, ENDIANNESS_LITTLE)->base(); m_rom_size = size; @@ -150,15 +150,15 @@ bool astrocade_cart_slot_device::call_load() { if (m_cart) { - UINT32 size = (software_entry() == NULL) ? length() : get_software_region_length("rom"); + UINT32 size = (software_entry() == nullptr) ? length() : get_software_region_length("rom"); m_cart->rom_alloc(size, tag()); - if (software_entry() == NULL) + if (software_entry() == nullptr) fread(m_cart->get_rom_base(), size); else memcpy(m_cart->get_rom_base(), get_software_region("rom"), size); - if (software_entry() == NULL) + if (software_entry() == nullptr) { m_type = ASTROCADE_STD; diff --git a/src/devices/bus/astrocde/slot.h b/src/devices/bus/astrocde/slot.h index 738c32a6faa..200f840f0e9 100644 --- a/src/devices/bus/astrocde/slot.h +++ b/src/devices/bus/astrocde/slot.h @@ -69,7 +69,7 @@ public: virtual bool is_creatable() const { return 0; } virtual bool must_be_loaded() const { return 0; } virtual bool is_reset_on_load() const { return 1; } - virtual const option_guide *create_option_guide() const { return NULL; } + virtual const option_guide *create_option_guide() const { return nullptr; } virtual const char *image_interface() const { return "astrocde_cart"; } virtual const char *file_extensions() const { return "bin"; } |