summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/machine/psxcd.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/machine/psxcd.h')
-rw-r--r--src/mame/machine/psxcd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mame/machine/psxcd.h b/src/mame/machine/psxcd.h
index b1cc0e5966a..efb36dc51db 100644
--- a/src/mame/machine/psxcd.h
+++ b/src/mame/machine/psxcd.h
@@ -16,15 +16,15 @@
MCFG_DEVICE_ADD(_tag, PSXCD, 0)
#define MCFG_PSXCD_IRQ_HANDLER(_devcb) \
- devcb = &psxcd_device::set_irq_handler(*device, DEVCB_##_devcb);
+ devcb = &downcast<psxcd_device &>(*device).set_irq_handler(DEVCB_##_devcb);
class psxcd_device : public cdrom_image_device
{
public:
psxcd_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- // static configuration helpers
- template <class Object> static devcb_base &set_irq_handler(device_t &device, Object &&cb) { return downcast<psxcd_device &>(device).m_irq_handler.set_callback(std::forward<Object>(cb)); }
+ // configuration helpers
+ template <class Object> devcb_base &set_irq_handler(Object &&cb) { return m_irq_handler.set_callback(std::forward<Object>(cb)); }
virtual image_init_result call_load() override;
virtual void call_unload() override;