diff options
author | 2018-02-25 14:18:39 +0100 | |
---|---|---|
committer | 2018-02-25 14:18:39 +0100 | |
commit | 9cc815af31f4d8a406349d35b0871328a1471e08 (patch) | |
tree | 6ade99610cf8234826cf6cd2c80ea8d4a1646439 /src/devices/video/huc6272.h | |
parent | f07b93b0532d379eb542ca507b103e71196e9147 (diff) |
de-staticify initializations for src/devices/video (#3270)
Diffstat (limited to 'src/devices/video/huc6272.h')
-rw-r--r-- | src/devices/video/huc6272.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/video/huc6272.h b/src/devices/video/huc6272.h index d0da9f1e953..1793ec11821 100644 --- a/src/devices/video/huc6272.h +++ b/src/devices/video/huc6272.h @@ -24,10 +24,10 @@ MCFG_DEVICE_ADD((tag), HUC6272, (freq)) #define MCFG_HUC6272_IRQ_CHANGED_CB(cb) \ - devcb = &huc6272_device::set_irq_changed_callback(*device, (DEVCB_##cb)); + devcb = &downcast<huc6272_device &>(*device).set_irq_changed_callback((DEVCB_##cb)); #define MCFG_HUC6272_RAINBOW(tag) \ - huc6272_device::set_rainbow_tag(*device, (tag)); + downcast<huc6272_device &>(*device).set_rainbow_tag((tag)); //************************************************************************** @@ -43,8 +43,8 @@ public: // construction/destruction huc6272_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); - template <class Object> static devcb_base &set_irq_changed_callback(device_t &device, Object &&cb) { return downcast<huc6272_device &>(device).m_irq_changed_cb.set_callback(std::forward<Object>(cb)); } - static void set_rainbow_tag(device_t &device, const char *tag) { downcast<huc6272_device &>(device).m_huc6271_tag = tag; } + template <class Object> devcb_base &set_irq_changed_callback(Object &&cb) { return m_irq_changed_cb.set_callback(std::forward<Object>(cb)); } + void set_rainbow_tag(const char *tag) { m_huc6271_tag = tag; } // I/O operations DECLARE_WRITE32_MEMBER( write ); |