summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/cat702.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/cat702.h')
-rw-r--r--src/mame/machine/cat702.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/cat702.h b/src/mame/machine/cat702.h
index 550da70f991..4c66568b817 100644
--- a/src/mame/machine/cat702.h
+++ b/src/mame/machine/cat702.h
@@ -11,15 +11,15 @@
DECLARE_DEVICE_TYPE(CAT702, cat702_device)
#define MCFG_CAT702_DATAOUT_HANDLER(_devcb) \
- devcb = &cat702_device::set_dataout_handler(*device, DEVCB_##_devcb);
+ devcb = &downcast<cat702_device &>(*device).set_dataout_handler(DEVCB_##_devcb);
class cat702_device : public device_t
{
public:
cat702_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // static configuration helpers
- template <class Object> static devcb_base &set_dataout_handler(device_t &device, Object &&cb) { return downcast<cat702_device &>(device).m_dataout_handler.set_callback(std::forward<Object>(cb)); }
+ // configuration helpers
+ template <class Object> devcb_base &set_dataout_handler(Object &&cb) { return m_dataout_handler.set_callback(std::forward<Object>(cb)); }
DECLARE_WRITE_LINE_MEMBER(write_select);
DECLARE_WRITE_LINE_MEMBER(write_datain);