summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/sound/2612intf.h
diff options
context:
space:
mode:
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
commit86f6ad0b5cd44799f8c2cfb9aad2727e32e9a4ce (patch)
treeed6d9dc25fb1f32a1894a98c916f3567b26f21b5 /src/devices/sound/2612intf.h
parentf07b93b0532d379eb542ca507b103e71196e9147 (diff)
de-staticify initializations for src/devices/sound (nw)
Diffstat (limited to 'src/devices/sound/2612intf.h')
-rw-r--r--src/devices/sound/2612intf.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/sound/2612intf.h b/src/devices/sound/2612intf.h
index 371e29cc408..d342fa148ec 100644
--- a/src/devices/sound/2612intf.h
+++ b/src/devices/sound/2612intf.h
@@ -7,15 +7,15 @@
#define MCFG_YM2612_IRQ_HANDLER(cb) \
- devcb = &ym2612_device::set_irq_handler(*device, (DEVCB_##cb));
+ devcb = &downcast<ym2612_device &>(*device).set_irq_handler((DEVCB_##cb));
class ym2612_device : public device_t, public device_sound_interface
{
public:
ym2612_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // static configuration helpers
- template <class Object> static devcb_base &set_irq_handler(device_t &device, Object &&cb) { return downcast<ym2612_device &>(device).m_irq_handler.set_callback(std::forward<Object>(cb)); }
+ // configuration helpers
+ template <class Object> devcb_base &set_irq_handler(Object &&cb) { return m_irq_handler.set_callback(std::forward<Object>(cb)); }
DECLARE_READ8_MEMBER( read );
DECLARE_WRITE8_MEMBER( write );