summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/fd1094.cpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-12-04 07:03:38 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2015-12-04 07:03:38 +0100
commit41681c1703244abe68cbcf3096ca259bd061cc08 (patch)
tree85d24789ff864e1b0f35fb87f0c58bad5925e27d /src/mame/machine/fd1094.cpp
parent0c56ac848dd0eba359500d444ecbb51f215ff5b9 (diff)
clang-modernize part 4
Diffstat (limited to 'src/mame/machine/fd1094.cpp')
-rw-r--r--src/mame/machine/fd1094.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mame/machine/fd1094.cpp b/src/mame/machine/fd1094.cpp
index ce1abbfad92..4d0992ef30e 100644
--- a/src/mame/machine/fd1094.cpp
+++ b/src/mame/machine/fd1094.cpp
@@ -558,9 +558,9 @@ fd1094_device::fd1094_device(const machine_config &mconfig, const char *tag, dev
m_state(0x00),
m_irqmode(false),
m_cache(*this),
- m_srcbase(NULL),
+ m_srcbase(nullptr),
m_srcbytes(0),
- m_key(NULL)
+ m_key(nullptr)
{
// override the name after the m68000 initializes
m_name.assign("FD1094");
@@ -637,11 +637,11 @@ void fd1094_device::device_start()
{
// find the key
m_key = memregion("key")->base();
- if (m_key == NULL)
+ if (m_key == nullptr)
throw emu_fatalerror("FD1094 key region not found!");
// get a pointer to the ROM region
- if (region() != NULL)
+ if (region() != nullptr)
{
m_srcbase = reinterpret_cast<UINT16 *>(region()->base());
m_srcbytes = region()->bytes();
@@ -651,7 +651,7 @@ void fd1094_device::device_start()
else
{
memory_share *share = owner()->memshare(tag());
- if (share != NULL)
+ if (share != nullptr)
{
m_srcbase = reinterpret_cast<UINT16 *>(share->ptr());
m_srcbytes = share->bytes();
@@ -659,7 +659,7 @@ void fd1094_device::device_start()
}
// if we got nothing, error
- if (m_srcbase == NULL)
+ if (m_srcbase == nullptr)
throw emu_fatalerror("FD1094 found no data to decrypt!");
// determine length and configure our cache