summaryrefslogtreecommitdiffstatshomepage
path: root/src/devices/video/huc6261.h
diff options
context:
space:
mode:
author Vas Crabb <vas@vastheman.com>2018-05-14 11:16:50 +1000
committer Vas Crabb <vas@vastheman.com>2018-05-14 11:16:50 +1000
commit75f1e7f86d479ba2df234d64448b5d889f666590 (patch)
treecaa43b8f4cd666340c798b726c53ce29e03d53fd /src/devices/video/huc6261.h
parent62be291842be67be394942ca6ec8fa835dac858e (diff)
set_tag can now take things other than C strings - please don't write new legacy code (nw)
Diffstat (limited to 'src/devices/video/huc6261.h')
-rw-r--r--src/devices/video/huc6261.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/devices/video/huc6261.h b/src/devices/video/huc6261.h
index f3621688d44..721ef88cc3a 100644
--- a/src/devices/video/huc6261.h
+++ b/src/devices/video/huc6261.h
@@ -36,9 +36,9 @@ public:
// construction/destruction
huc6261_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
- void set_vdc1_tag(const char *tag) { m_huc6270_a.set_tag(tag); }
- void set_vdc2_tag(const char *tag) { m_huc6270_b.set_tag(tag); }
- void set_king_tag(const char *tag) { m_huc6272.set_tag(tag); }
+ template <typename T> void set_vdc1_tag(T &&tag) { m_huc6270_a.set_tag(std::forward<T>(tag)); }
+ template <typename T> void set_vdc2_tag(T &&tag) { m_huc6270_b.set_tag(std::forward<T>(tag)); }
+ template <typename T> void set_king_tag(T &&tag) { m_huc6272.set_tag(std::forward<T>(tag)); }
void video_update(bitmap_rgb32 &bitmap, const rectangle &cliprect);
DECLARE_READ16_MEMBER( read );