summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/cpu/drcuml.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-03-25 01:44:45 +1100
committer Vas Crabb <vas@vastheman.com>2018-03-25 01:44:45 +1100
commit8142f24c4307439397ffb2c01fab76e6f2c1b95e (patch)
treed279883a544fe6df634040592a597d14c5c76c40 /src/devices/cpu/drcuml.cpp
parent2ad88fd875f04a801cedb87a27d5d93d9b4bf302 (diff)
don't pass so many naked pointers around (nw)
Diffstat (limited to 'src/devices/cpu/drcuml.cpp')
-rw-r--r--src/devices/cpu/drcuml.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/cpu/drcuml.cpp b/src/devices/cpu/drcuml.cpp
index dcf8196dfe6..0a1dcae9d02 100644
--- a/src/devices/cpu/drcuml.cpp
+++ b/src/devices/cpu/drcuml.cpp
@@ -203,7 +203,7 @@ void drcuml_state::reset()
// begin_block - begin a new code block
//-------------------------------------------------
-drcuml_block *drcuml_state::begin_block(uint32_t maxinst)
+drcuml_block &drcuml_state::begin_block(uint32_t maxinst)
{
// find an inactive block that matches our qualifications
drcuml_block *bestblock(nullptr);
@@ -219,7 +219,7 @@ drcuml_block *drcuml_state::begin_block(uint32_t maxinst)
// start the block
bestblock->begin();
- return bestblock;
+ return *bestblock;
}