summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/km035.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/km035.h')
-rw-r--r--src/mame/machine/km035.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mame/machine/km035.h b/src/mame/machine/km035.h
index 188613b1074..aae0036c37c 100644
--- a/src/mame/machine/km035.h
+++ b/src/mame/machine/km035.h
@@ -18,10 +18,10 @@
//**************************************************************************
#define MCFG_KM035_TX_HANDLER(_cb) \
- devcb = &km035_device::set_tx_handler(*device, DEVCB_##_cb);
+ devcb = &downcast<km035_device &>(*device).set_tx_handler(DEVCB_##_cb);
#define MCFG_KM035_RTS_HANDLER(_cb) \
- devcb = &km035_device::set_rts_handler(*device, DEVCB_##_cb);
+ devcb = &downcast<km035_device &>(*device).set_rts_handler(DEVCB_##_cb);
//**************************************************************************
@@ -36,8 +36,8 @@ public:
// construction/destruction
km035_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template<class _Object> static devcb_base &set_tx_handler(device_t &device, _Object wr) { return downcast<km035_device &>(device).m_tx_handler.set_callback(wr); }
- template<class _Object> static devcb_base &set_rts_handler(device_t &device, _Object wr) { return downcast<km035_device &>(device).m_rts_handler.set_callback(wr); }
+ template<class _Object> devcb_base &set_tx_handler(_Object wr) { return m_tx_handler.set_callback(wr); }
+ template<class _Object> devcb_base &set_rts_handler(_Object wr) { return m_rts_handler.set_callback(wr); }
DECLARE_WRITE_LINE_MEMBER( write_rxd );