diff options
Diffstat (limited to 'src/mame/audio/rad_eu3a05.h')
-rw-r--r-- | src/mame/audio/rad_eu3a05.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/audio/rad_eu3a05.h b/src/mame/audio/rad_eu3a05.h index 55a98a6e183..8dcd61927a4 100644 --- a/src/mame/audio/rad_eu3a05.h +++ b/src/mame/audio/rad_eu3a05.h @@ -5,7 +5,7 @@ #define MAME_AUDIO_RAD_EU3A05_H #define MCFG_RADICA6502_SOUND_SPACE_READ_CB(_devcb) \ - devcb = &radica6502_sound_device::set_space_read_callback(*device, DEVCB_##_devcb); + devcb = &downcast<radica6502_sound_device &>(*device).set_space_read_callback(DEVCB_##_devcb); //************************************************************************** // TYPE DEFINITIONS @@ -18,7 +18,7 @@ class radica6502_sound_device : public device_t, public device_sound_interface public: radica6502_sound_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template <class Object> static devcb_base &set_space_read_callback(device_t &device, Object &&cb) { return downcast<radica6502_sound_device &>(device).m_space_read_cb.set_callback(std::forward<Object>(cb)); } + template <class Object> devcb_base &set_space_read_callback(Object &&cb) { return m_space_read_cb.set_callback(std::forward<Object>(cb)); } DECLARE_WRITE8_MEMBER(radicasi_sound_addr_w); DECLARE_READ8_MEMBER(radicasi_sound_addr_r); |