diff options
author | Wilbert Pol <wilbertpol@users.noreply.github.com> | 2018-02-25 17:40:06 +0100 |
---|---|---|
committer | Wilbert Pol <wilbertpol@users.noreply.github.com> | 2018-02-25 17:40:06 +0100 |
commit | 86f6ad0b5cd44799f8c2cfb9aad2727e32e9a4ce (patch) | |
tree | ed6d9dc25fb1f32a1894a98c916f3567b26f21b5 /src/devices/sound/k056800.h | |
parent | f07b93b0532d379eb542ca507b103e71196e9147 (diff) |
de-staticify initializations for src/devices/sound (nw)
Diffstat (limited to 'src/devices/sound/k056800.h')
-rw-r--r-- | src/devices/sound/k056800.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/sound/k056800.h b/src/devices/sound/k056800.h index 182700d9b1f..aa05889234c 100644 --- a/src/devices/sound/k056800.h +++ b/src/devices/sound/k056800.h @@ -15,10 +15,10 @@ ***************************************************************************/ #define MCFG_K056800_ADD(tag, clock) \ - MCFG_DEVICE_ADD((tag), K056800, (clock)) + MCFG_DEVICE_ADD((tag), K056800, (clock)) #define MCFG_K056800_INT_HANDLER(cb) \ - devcb = &k056800_device::set_int_handler(*device, (DEVCB_##cb)); + devcb = &downcast<k056800_device &>(*device).set_int_handler((DEVCB_##cb)); @@ -32,8 +32,8 @@ public: // construction/destruction k056800_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - // static configuration helpers - template <class Object> static devcb_base &set_int_handler(device_t &device, Object &&cb) { return downcast<k056800_device &>(device).m_int_handler.set_callback(std::forward<Object>(cb)); } + // configuration helpers + template <class Object> devcb_base &set_int_handler(Object &&cb) { return m_int_handler.set_callback(std::forward<Object>(cb)); } DECLARE_READ8_MEMBER( host_r ); DECLARE_WRITE8_MEMBER( host_w ); |