diff options
author | wilbertpol <wilbertpol@users.noreply.github.com> | 2018-03-03 18:18:08 +0100 |
---|---|---|
committer | Vas Crabb <cuavas@users.noreply.github.com> | 2018-03-04 04:18:08 +1100 |
commit | 3b923d59ccb8d2d8e386392518450006f8e644fe (patch) | |
tree | 73c48568e76d69edbde9f96a3f57d173dd05a747 /src/devices/machine/ds1315.h | |
parent | 25472091b626bd01ef47f11389a4b2ebe0fc0008 (diff) |
destaticify initializations (nw) (#3289)
* destaticify initializations (nw)
* fix this->set_screen (nw)
Diffstat (limited to 'src/devices/machine/ds1315.h')
-rw-r--r-- | src/devices/machine/ds1315.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/devices/machine/ds1315.h b/src/devices/machine/ds1315.h index 132056e46b3..b1f8b11b399 100644 --- a/src/devices/machine/ds1315.h +++ b/src/devices/machine/ds1315.h @@ -23,7 +23,7 @@ MCFG_DEVICE_ADD(_tag, DS1315, 0) #define MCFG_DS1315_BACKING_HANDLER(_devcb) \ - devcb = &ds1315_device::set_backing_handler(*device, DEVCB_##_devcb); + devcb = &downcast<ds1315_device &>(*device).set_backing_handler(DEVCB_##_devcb); /*************************************************************************** MACROS @@ -46,8 +46,7 @@ public: bool chip_enable(); void chip_reset(); - template <class Object> static devcb_base &set_backing_handler(device_t &device, Object &&cb) - { return downcast<ds1315_device &>(device).m_backing_read.set_callback(std::forward<Object>(cb)); } + template <class Object> devcb_base &set_backing_handler(Object &&cb) { return m_backing_read.set_callback(std::forward<Object>(cb)); } protected: // device-level overrides |