diff options
Diffstat (limited to 'src/devices/machine/nvram.cpp')
-rw-r--r-- | src/devices/machine/nvram.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/devices/machine/nvram.cpp b/src/devices/machine/nvram.cpp index d18709234e4..f58c8c1de52 100644 --- a/src/devices/machine/nvram.cpp +++ b/src/devices/machine/nvram.cpp @@ -16,14 +16,14 @@ //************************************************************************** // device type definition -const device_type NVRAM = device_creator<nvram_device>; +DEFINE_DEVICE_TYPE(NVRAM, nvram_device, "nvram", "NVRAM") //------------------------------------------------- // nvram_device - constructor //------------------------------------------------- nvram_device::nvram_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock) - : device_t(mconfig, NVRAM, "NVRAM", tag, owner, clock, "nvram", __FILE__), + : device_t(mconfig, NVRAM, tag, owner, clock), device_nvram_interface(mconfig, *this), m_region(*this, DEVICE_SELF), m_default_value(DEFAULT_ALL_1), @@ -50,11 +50,11 @@ void nvram_device::static_set_default_value(device_t &device, default_value valu // helper to set a custom callback //------------------------------------------------- -void nvram_device::static_set_custom_handler(device_t &device, nvram_init_delegate handler) +void nvram_device::static_set_custom_handler(device_t &device, init_delegate &&handler) { nvram_device &nvram = downcast<nvram_device &>(device); nvram.m_default_value = DEFAULT_CUSTOM; - nvram.m_custom_handler = handler; + nvram.m_custom_handler = std::move(handler); } |