summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/gic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/gic.h')
-rw-r--r--src/mame/video/gic.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/video/gic.h b/src/mame/video/gic.h
index 8f2f78fd3c6..cba71069b14 100644
--- a/src/mame/video/gic.h
+++ b/src/mame/video/gic.h
@@ -25,7 +25,7 @@
#define MCFG_GIC_ADD(tag, clock, screen_tag, ram_cb) \
MCFG_DEVICE_ADD(tag, GIC, clock) \
MCFG_VIDEO_SET_SCREEN(screen_tag) \
- gic_device::set_ram(*device, DEVCB_##ram_cb);
+ downcast<gic_device &>(*device).set_ram(DEVCB_##ram_cb);
/***************************************************************************
TYPE DEFINITIONS
@@ -56,8 +56,8 @@ public:
// construction/destruction
gic_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // static configuration helpers
- template <typename Obj> static void set_ram(device_t &device, Obj &&cb) { downcast<gic_device &>(device).m_ram.set_callback(std::forward<Obj>(cb)); }
+ // configuration helpers
+ template <typename Obj> void set_ram(Obj &&cb) { m_ram.set_callback(std::forward<Obj>(cb)); }
DECLARE_PALETTE_INIT(gic);