summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/hd44352.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/hd44352.h')
-rw-r--r--src/devices/video/hd44352.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/video/hd44352.h b/src/devices/video/hd44352.h
index a7dff37b904..ce12d9bc1cb 100644
--- a/src/devices/video/hd44352.h
+++ b/src/devices/video/hd44352.h
@@ -13,7 +13,7 @@
#define MCFG_HD44352_ON_CB(_devcb) \
- devcb = &hd44352_device::set_on_callback(*device, DEVCB_##_devcb);
+ devcb = &downcast<hd44352_device &>(*device).set_on_callback(DEVCB_##_devcb);
//**************************************************************************
@@ -28,7 +28,7 @@ public:
// construction/destruction
hd44352_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> static devcb_base &set_on_callback(device_t &device, Object &&cb) { return downcast<hd44352_device &>(device).m_on_cb.set_callback(std::forward<Object>(cb)); }
+ template <class Object> devcb_base &set_on_callback(Object &&cb) { return m_on_cb.set_callback(std::forward<Object>(cb)); }
// device interface
uint8_t data_read();