summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/machine/kr2376.h
diff options
context:
space:
mode:
author wilbertpol <wilbertpol@users.noreply.github.com>2018-03-03 18:18:08 +0100
committer Vas Crabb <cuavas@users.noreply.github.com>2018-03-04 04:18:08 +1100
commit3b923d59ccb8d2d8e386392518450006f8e644fe (patch)
tree73c48568e76d69edbde9f96a3f57d173dd05a747 /src/devices/machine/kr2376.h
parent25472091b626bd01ef47f11389a4b2ebe0fc0008 (diff)
destaticify initializations (nw) (#3289)
* destaticify initializations (nw) * fix this->set_screen (nw)
Diffstat (limited to 'src/devices/machine/kr2376.h')
-rw-r--r--src/devices/machine/kr2376.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/machine/kr2376.h b/src/devices/machine/kr2376.h
index 6206e82ba2c..3b25d0c527c 100644
--- a/src/devices/machine/kr2376.h
+++ b/src/devices/machine/kr2376.h
@@ -36,7 +36,7 @@
#define MCFG_KR2376_STROBE_CALLBACK(_write) \
- devcb = &kr2376_device::set_strobe_wr_callback(*device, DEVCB_##_write);
+ devcb = &downcast<kr2376_device &>(*device).set_strobe_wr_callback(DEVCB_##_write);
class kr2376_device : public device_t
{
@@ -58,7 +58,7 @@ public:
kr2376_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> static devcb_base &set_strobe_wr_callback(device_t &device, Object &&cb) { return downcast<kr2376_device &>(device).m_write_strobe.set_callback(std::forward<Object>(cb)); }
+ template <class Object> devcb_base &set_strobe_wr_callback(Object &&cb) { return m_write_strobe.set_callback(std::forward<Object>(cb)); }
/* keyboard data */
DECLARE_READ8_MEMBER( data_r );