diff options
author | wilbertpol <wilbertpol@users.noreply.github.com> | 2018-02-21 10:44:28 +0100 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-02-21 10:44:28 +0100 |
commit | 8fd43467283fad4cc8e9a19fd6255bd5413c0152 (patch) | |
tree | 2963ee13accbc29bfdf20a34d6275ef819da46eb /src/mame/machine/dec_lk201.h | |
parent | 21770973eefcb379a034aec898853805e8edcf1a (diff) |
de-staticify initializations for mame/machine (#3251)
Diffstat (limited to 'src/mame/machine/dec_lk201.h')
-rw-r--r-- | src/mame/machine/dec_lk201.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/dec_lk201.h b/src/mame/machine/dec_lk201.h index 51f1835b20a..231e3157a36 100644 --- a/src/mame/machine/dec_lk201.h +++ b/src/mame/machine/dec_lk201.h @@ -35,7 +35,7 @@ //************************************************************************** #define MCFG_LK201_TX_HANDLER(_cb) \ - devcb = &lk201_device::set_tx_handler(*device, DEVCB_##_cb); + devcb = &downcast<lk201_device &>(*device).set_tx_handler(DEVCB_##_cb); //************************************************************************** // TYPE DEFINITIONS @@ -60,7 +60,7 @@ public: DECLARE_READ8_MEMBER(timer_r); DECLARE_WRITE8_MEMBER(timer_w); - template<class _Object> static devcb_base &set_tx_handler(device_t &device, _Object wr) { return downcast<lk201_device &>(device).m_tx_handler.set_callback(wr); } + template<class _Object> devcb_base &set_tx_handler(_Object wr) { return m_tx_handler.set_callback(wr); } void lk201_map(address_map &map); protected: |