diff options
Diffstat (limited to 'src/devices/video/hd44352.h')
-rw-r--r-- | src/devices/video/hd44352.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/devices/video/hd44352.h b/src/devices/video/hd44352.h index 1dc67eca7f5..4bf12e359e2 100644 --- a/src/devices/video/hd44352.h +++ b/src/devices/video/hd44352.h @@ -11,11 +11,6 @@ #pragma once - -#define MCFG_HD44352_ON_CB(_devcb) \ - downcast<hd44352_device &>(*device).set_on_callback(DEVCB_##_devcb); - - //************************************************************************** // TYPE DEFINITIONS //************************************************************************** @@ -28,7 +23,7 @@ public: // construction/destruction hd44352_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template <class Object> devcb_base &set_on_callback(Object &&cb) { return m_on_cb.set_callback(std::forward<Object>(cb)); } + auto on_cb() { return m_on_cb.bind(); } // device interface uint8_t data_read(); |