From 9cc815af31f4d8a406349d35b0871328a1471e08 Mon Sep 17 00:00:00 2001 From: wilbertpol Date: Sun, 25 Feb 2018 14:18:39 +0100 Subject: de-staticify initializations for src/devices/video (#3270) --- src/devices/video/snes_ppu.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/devices/video/snes_ppu.h') diff --git a/src/devices/video/snes_ppu.h b/src/devices/video/snes_ppu.h index a3be6fed5da..0fddff1a44f 100644 --- a/src/devices/video/snes_ppu.h +++ b/src/devices/video/snes_ppu.h @@ -44,7 +44,7 @@ public: snes_ppu_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); // inline configuration helpers - template static devcb_base &static_set_open_bus_callback(device_t &device, Object &&cb) { return downcast(device).m_openbus_cb.set_callback(std::forward(cb)); } + template devcb_base &set_open_bus_callback(Object &&cb) { return m_openbus_cb.set_callback(std::forward(cb)); } void refresh_scanline(bitmap_rgb32 &bitmap, uint16_t curline); @@ -319,6 +319,6 @@ DECLARE_DEVICE_TYPE(SNES_PPU, snes_ppu_device) ***************************************************************************/ #define MCFG_SNES_PPU_OPENBUS_CB(_read) \ - devcb = &snes_ppu_device::static_set_open_bus_callback(*device, DEVCB_##_read); + devcb = &downcast(*device).set_open_bus_callback(DEVCB_##_read); #endif // MAME_VIDEO_SNES_PPU_H -- cgit v1.2.3