summaryrefslogtreecommitdiffstatshomepage
path: root/src/emu/device.cpp
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-04-28 00:01:30 +1000
committer Vas Crabb <vas@vastheman.com>2018-04-28 00:01:30 +1000
commit57fd28d36a082eb0fc6ab48e4ded752eb3179976 (patch)
tree8440d006dceee816e613f8a6e366821bbea27e43 /src/emu/device.cpp
parentcc27fb97e0aa24e734f553ce99ad6484fced8d6f (diff)
Sarayan made me do it.
Concrete device types now have a call operator that instantiates a device. This change means you *must* use DECLARE_DEVICE_TYPE to declare the public interface of your device, even if it's device_t. If you want to use private implementation classes, use DEFINE_DEVICE_TYPE_PRIVATE and instantiate the object finders.
Diffstat (limited to 'src/emu/device.cpp')
-rw-r--r--src/emu/device.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/emu/device.cpp b/src/emu/device.cpp
index a039ec1dc0c..7fa09a20974 100644
--- a/src/emu/device.cpp
+++ b/src/emu/device.cpp
@@ -25,9 +25,9 @@ namespace {
struct device_registrations
{
- device_type_impl *first = nullptr;
- device_type_impl *last = nullptr;
- device_type_impl *unsorted = nullptr;
+ device_type_impl_base *first = nullptr;
+ device_type_impl_base *last = nullptr;
+ device_type_impl_base *unsorted = nullptr;
};
device_registrations &device_registration_data()
@@ -53,7 +53,7 @@ device_registrar::const_iterator device_registrar::cend() const
}
-device_type_impl *device_registrar::register_device(device_type_impl &type)
+device_type_impl_base *device_registrar::register_device(device_type_impl_base &type)
{
device_registrations &data(device_registration_data());