summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/bus/ti99/internal/evpcconn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/devices/bus/ti99/internal/evpcconn.h')
-rw-r--r--src/devices/bus/ti99/internal/evpcconn.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/devices/bus/ti99/internal/evpcconn.h b/src/devices/bus/ti99/internal/evpcconn.h
index 4bd95f8f179..9f1af61ccf9 100644
--- a/src/devices/bus/ti99/internal/evpcconn.h
+++ b/src/devices/bus/ti99/internal/evpcconn.h
@@ -21,10 +21,7 @@ class evpc_clock_connector : public device_t
public:
evpc_clock_connector(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- template<class _Object> static devcb_base &static_set_vdpint_callback(device_t &device, _Object object)
- {
- return downcast<evpc_clock_connector &>(device).m_vdpint.set_callback(object);
- }
+ template<class Object> devcb_base &set_vdpint_callback(Object &&cb) { return m_vdpint.set_callback(std::forward<Object>(cb)); }
DECLARE_WRITE_LINE_MEMBER( vclock_line );
void device_start() override;
@@ -40,6 +37,6 @@ DECLARE_DEVICE_TYPE_NS(TI99_EVPCCONN, bus::ti99::internal, evpc_clock_connector)
#define MCFG_ADD_EVPC_CONNECTOR( _tag, _vdpint ) \
MCFG_DEVICE_ADD(_tag, TI99_EVPCCONN, 0) \
- devcb = &bus::ti99::internal::evpc_clock_connector::static_set_vdpint_callback( *device, DEVCB_##_vdpint );
+ devcb = &downcast<bus::ti99::internal::evpc_clock_connector &>(*device).set_vdpint_callback(DEVCB_##_vdpint);
#endif // MAME_BUS_TI99_INTERNAL_EVPCCONN_H