diff options
author | 2018-03-03 18:18:08 +0100 | |
---|---|---|
committer | 2018-03-04 04:18:08 +1100 | |
commit | 3b923d59ccb8d2d8e386392518450006f8e644fe (patch) | |
tree | 73c48568e76d69edbde9f96a3f57d173dd05a747 /src/devices/bus/ti99x/990_dk.h | |
parent | 25472091b626bd01ef47f11389a4b2ebe0fc0008 (diff) |
destaticify initializations (nw) (#3289)
* destaticify initializations (nw)
* fix this->set_screen (nw)
Diffstat (limited to 'src/devices/bus/ti99x/990_dk.h')
-rw-r--r-- | src/devices/bus/ti99x/990_dk.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/devices/bus/ti99x/990_dk.h b/src/devices/bus/ti99x/990_dk.h index 97c00ef21d5..79bebc674d6 100644 --- a/src/devices/bus/ti99x/990_dk.h +++ b/src/devices/bus/ti99x/990_dk.h @@ -18,10 +18,7 @@ public: DECLARE_READ8_MEMBER( cru_r ); DECLARE_WRITE8_MEMBER( cru_w ); - template <class Object> static devcb_base &static_set_int_callback(device_t &device, Object &&cb) - { - return downcast<fd800_legacy_device &>(device).m_int_line.set_callback(std::forward<Object>(cb)); - } + template <class Object> devcb_base &set_int_callback(Object &&cb) { return m_int_line.set_callback(std::forward<Object>(cb)); } private: enum buf_mode_t @@ -72,6 +69,6 @@ private: // LEGACY_FLOPPY_OPTIONS_EXTERN(fd800); #define MCFG_FD800_INT_HANDLER( _intcallb ) \ - devcb = &fd800_legacy_device::static_set_int_callback( *device, DEVCB_##_intcallb ); + devcb = &downcast<fd800_legacy_device &>(*device).set_int_callback(DEVCB_##_intcallb); #endif // MAME_BUS_TI99X_990_DK_H |