summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/pcd_kbd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/pcd_kbd.h')
-rw-r--r--src/mame/machine/pcd_kbd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/pcd_kbd.h b/src/mame/machine/pcd_kbd.h
index d8998be4468..b8f95c2853a 100644
--- a/src/mame/machine/pcd_kbd.h
+++ b/src/mame/machine/pcd_kbd.h
@@ -6,14 +6,14 @@
#pragma once
#define MCFG_PCD_KEYBOARD_OUT_TX_HANDLER(_devcb) \
- devcb = &pcd_keyboard_device::set_out_tx_handler(*device, DEVCB_##_devcb);
+ devcb = &downcast<pcd_keyboard_device &>(*device).set_out_tx_handler(DEVCB_##_devcb);
class pcd_keyboard_device : public device_t
{
public:
pcd_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template <class Object> static devcb_base &set_out_tx_handler(device_t &device, Object &&cb) { return downcast<pcd_keyboard_device &>(device).m_out_tx_handler.set_callback(std::forward<Object>(cb)); }
+ template <class Object> devcb_base &set_out_tx_handler(Object &&cb) { return m_out_tx_handler.set_callback(std::forward<Object>(cb)); }
DECLARE_WRITE_LINE_MEMBER( t0_w );