diff options
author | Miodrag Milanović <mmicko@gmail.com> | 2021-07-05 09:56:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-05 09:56:08 +0200 |
commit | 68df03a7d236bc63deb648cc019b3e2fc22d222c (patch) | |
tree | a7bdaad63eab0ef70b76ef99a00933ce715da4df /src/emu | |
parent | 4a00d428c96946c3a27227718a29a317aa055701 (diff) |
Remove some tag lookups by name (#8252)
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/machine.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/emu/machine.h b/src/emu/machine.h index 39e09d9fb89..83e1c512268 100644 --- a/src/emu/machine.h +++ b/src/emu/machine.h @@ -168,8 +168,7 @@ public: bool allow_logging() const { return !m_logerror_list.empty(); } // fetch items by name - [[deprecated("absolute tag lookup; use subdevice or finder instead")]] inline device_t *device(const char *tag) const { return root_device().subdevice(tag); } - template <class DeviceClass> [[deprecated("absolute tag lookup; use subdevice or finder instead")]] inline DeviceClass *device(const char *tag) { return downcast<DeviceClass *>(device(tag)); } + template <class DeviceClass> [[deprecated("absolute tag lookup; use subdevice or finder instead")]] inline DeviceClass *device(const char *tag) { return downcast<DeviceClass *>(root_device().subdevice(tag)); } // immediate operations int run(bool quiet); |