diff options
author | Olivier Galibert <galibert@pobox.com> | 2018-07-30 23:40:13 +0200 |
---|---|---|
committer | Olivier Galibert <galibert@pobox.com> | 2018-07-30 23:43:39 +0200 |
commit | 249b42112be26464dc6030872fdbcddf3dd10980 (patch) | |
tree | 03a1f667ca492c0001b37b2a6b07ef60e5174a40 | |
parent | 796abaf7f3200a96499440a4c40bec3440d55209 (diff) |
old scsi: minor stuff (nw)
-rw-r--r-- | src/devices/bus/scsi/scsi.h | 7 | ||||
-rw-r--r-- | src/devices/machine/legscsi.h | 2 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/devices/bus/scsi/scsi.h b/src/devices/bus/scsi/scsi.h index 9a403d534fb..b5f1ee7473a 100644 --- a/src/devices/bus/scsi/scsi.h +++ b/src/devices/bus/scsi/scsi.h @@ -98,12 +98,7 @@ class scsi_port_device : public device_t public: // construction/destruction - scsi_port_device(const machine_config &mconfig, const char *tag, device_t *owner) - : scsi_port_device(mconfig, tag, owner, (uint32_t)0) - { - } - - scsi_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock); + scsi_port_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock = 0); template <class Object> devcb_base &set_bsy_handler(Object &&cb) { return m_bsy_handler.set_callback(std::forward<Object>(cb)); } template <class Object> devcb_base &set_sel_handler(Object &&cb) { return m_sel_handler.set_callback(std::forward<Object>(cb)); } diff --git a/src/devices/machine/legscsi.h b/src/devices/machine/legscsi.h index b86bb61505c..fee1b333061 100644 --- a/src/devices/machine/legscsi.h +++ b/src/devices/machine/legscsi.h @@ -13,7 +13,7 @@ class legacy_scsi_host_adapter : public device_t { public: - void set_scsi_port(const char *tag) { m_scsi_port.set_tag(tag); } + template <typename T> void set_scsi_port(T && tag) { m_scsi_port.set_tag(std::forward<T>(tag)); } protected: legacy_scsi_host_adapter(const machine_config &mconfig, device_type type, const char *tag, device_t *owner, uint32_t clock); |