summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hd61830.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/hd61830.h')
-rw-r--r--src/devices/video/hd61830.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/video/hd61830.h b/src/devices/video/hd61830.h
index 93bcfbf96ac..534c42c8602 100644
--- a/src/devices/video/hd61830.h
+++ b/src/devices/video/hd61830.h
@@ -19,7 +19,7 @@
//**************************************************************************
#define MCFG_HD61830_RD_CALLBACK(_read) \
- devcb = &hd61830_device::set_rd_rd_callback(*device, DEVCB_##_read);
+ devcb = &downcast<hd61830_device &>(*device).set_rd_rd_callback(DEVCB_##_read);
@@ -37,7 +37,7 @@ public:
// construction/destruction
hd61830_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> static devcb_base &set_rd_rd_callback(device_t &device, Object &&cb) { return downcast<hd61830_device &>(device).m_read_rd.set_callback(std::forward<Object>(cb)); }
+ template <class Object> devcb_base &set_rd_rd_callback(Object &&cb) { return m_read_rd.set_callback(std::forward<Object>(cb)); }
DECLARE_READ8_MEMBER( status_r );
DECLARE_WRITE8_MEMBER( control_w );