summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/dl1416.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/video/dl1416.h')
-rw-r--r--src/devices/video/dl1416.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/devices/video/dl1416.h b/src/devices/video/dl1416.h
index dbc67b97787..e064f177f58 100644
--- a/src/devices/video/dl1416.h
+++ b/src/devices/video/dl1416.h
@@ -31,10 +31,10 @@ extern device_type const DL1416T;
***************************************************************************/
#define MCFG_DL1414_UPDATE_HANDLER(_devcb) \
- devcb = &dl1414_device::set_update_handler(*device, DEVCB_##_devcb);
+ devcb = &downcast<dl1414_device &>(*device).set_update_handler(DEVCB_##_devcb);
#define MCFG_DL1416_UPDATE_HANDLER(_devcb) \
- devcb = &dl1416_device::set_update_handler(*device, DEVCB_##_devcb);
+ devcb = &downcast<dl1414_device &>(*device).set_update_handler(DEVCB_##_devcb);
/***************************************************************************
@@ -44,8 +44,7 @@ extern device_type const DL1416T;
class dl1414_device : public device_t
{
public:
- template <typename Object> static devcb_base &set_update_handler(device_t &device, Object &&cb)
- { return downcast<dl1414_device &>(device).m_update_cb.set_callback(std::forward<Object>(cb)); }
+ template <typename Object> devcb_base &set_update_handler(Object &&cb) { return m_update_cb.set_callback(std::forward<Object>(cb)); }
// signal-level interface
DECLARE_WRITE_LINE_MEMBER(wr_w); // write strobe (rising edge)