summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/pcd8544.h
diff options
context:
space:
mode:
author wilbertpol <wilbertpol@users.noreply.github.com>2018-02-25 14:18:39 +0100
committer Olivier Galibert <galibert@pobox.com>2018-02-25 14:18:39 +0100
commit9cc815af31f4d8a406349d35b0871328a1471e08 (patch)
tree6ade99610cf8234826cf6cd2c80ea8d4a1646439 /src/devices/video/pcd8544.h
parentf07b93b0532d379eb542ca507b103e71196e9147 (diff)
de-staticify initializations for src/devices/video (#3270)
Diffstat (limited to 'src/devices/video/pcd8544.h')
-rw-r--r--src/devices/video/pcd8544.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/devices/video/pcd8544.h b/src/devices/video/pcd8544.h
index 850e9996df1..fee6fad00d8 100644
--- a/src/devices/video/pcd8544.h
+++ b/src/devices/video/pcd8544.h
@@ -22,7 +22,7 @@
MCFG_DEVICE_ADD( _tag, PCD8544, 0 )
#define MCFG_PCD8544_SCREEN_UPDATE_CALLBACK(_class, _method) \
- pcd8544_device::static_set_screen_update_cb(*device, pcd8544_device::screen_update_delegate(&_class::_method, #_class "::" #_method, this));
+ downcast<pcd8544_device &>(*device).set_screen_update_cb(pcd8544_device::screen_update_delegate(&_class::_method, #_class "::" #_method, this));
// ======================> pcd8544_device
@@ -34,7 +34,7 @@ public:
// construction/destruction
pcd8544_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- static void static_set_screen_update_cb(device_t &device, screen_update_delegate &&cb) { downcast<pcd8544_device &>(device).m_screen_update_cb = std::move(cb); }
+ template <typename Object> void set_screen_update_cb(Object &&cb) { m_screen_update_cb = std::forward<Object>(cb); }
// device interface
DECLARE_WRITE_LINE_MEMBER(sdin_w);