summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/abc80kb.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/abc80kb.h')
-rw-r--r--src/mame/machine/abc80kb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mame/machine/abc80kb.h b/src/mame/machine/abc80kb.h
index 5416a8611ca..093a5ef88a3 100644
--- a/src/mame/machine/abc80kb.h
+++ b/src/mame/machine/abc80kb.h
@@ -25,7 +25,7 @@
//**************************************************************************
#define MCFG_ABC80_KEYBOARD_KEYDOWN_CALLBACK(_write) \
- devcb = &abc80_keyboard_device::set_keydown_wr_callback(*device, DEVCB_##_write);
+ devcb = &downcast<abc80_keyboard_device &>(*device).set_keydown_wr_callback(DEVCB_##_write);
@@ -41,7 +41,7 @@ public:
// construction/destruction
abc80_keyboard_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template<class _Object> static devcb_base &set_keydown_wr_callback(device_t &device, _Object object) { return downcast<abc80_keyboard_device &>(device).m_write_keydown.set_callback(object); }
+ template<class _Object> devcb_base &set_keydown_wr_callback(_Object object) { return m_write_keydown.set_callback(object); }
uint8_t data_r();