summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/homerun.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/drivers/homerun.cpp
parent0c56ac848dd0eba359500d444ecbb51f215ff5b9 (diff)
clang-modernize part 4
Diffstat (limited to 'src/mame/drivers/homerun.cpp')
-rw-r--r--src/mame/drivers/homerun.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/drivers/homerun.cpp b/src/mame/drivers/homerun.cpp
index 5dfe6ecba4d..65b3c851fb4 100644
--- a/src/mame/drivers/homerun.cpp
+++ b/src/mame/drivers/homerun.cpp
@@ -70,12 +70,12 @@ WRITE8_MEMBER(homerun_state::homerun_control_w)
// d4: d7756 start pin
// d5: d7756 reset pin(?)
- if (m_d7756 != NULL)
+ if (m_d7756 != nullptr)
{
m_d7756->reset_w(~data & 0x20);
m_d7756->start_w(~data & 0x10);
}
- if (m_samples != NULL)
+ if (m_samples != nullptr)
{
// play MAME sample if a dump of the internal rom does not exist
if (data & 0x20 & ~m_control)
@@ -97,7 +97,7 @@ WRITE8_MEMBER(homerun_state::homerun_d7756_sample_w)
{
m_sample = data;
- if (m_d7756 != NULL)
+ if (m_d7756 != nullptr)
m_d7756->port_w(space, 0, data);
}
@@ -285,7 +285,7 @@ static const char *const homerun_sample_names[] =
"13", // aho (be called a fool by supervisor)
"14", // bat hits ball
"15", // crowd cheers
- 0
+ nullptr
};
/**************************************************************************/