summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/decocomn.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/decocomn.h')
-rw-r--r--src/mame/video/decocomn.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/mame/video/decocomn.h b/src/mame/video/decocomn.h
index f6ec0a0a547..87d2153d466 100644
--- a/src/mame/video/decocomn.h
+++ b/src/mame/video/decocomn.h
@@ -25,7 +25,7 @@ public:
decocomn_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
// configuration
- void set_palette_tag(const char *tag) { m_palette.set_tag(tag); }
+ template <typename T> void set_palette_tag(T &&tag) { m_palette.set_tag(std::forward<T>(tag)); }
DECLARE_WRITE16_MEMBER( buffered_palette_w );
DECLARE_WRITE16_MEMBER( palette_dma_w );
@@ -49,15 +49,4 @@ private:
DECLARE_DEVICE_TYPE(DECOCOMN, decocomn_device)
-
-/***************************************************************************
- DEVICE CONFIGURATION MACROS
-***************************************************************************/
-
-#define MCFG_DECOCOMN_ADD(_tag) \
- MCFG_DEVICE_ADD(_tag, DECOCOMN, 0)
-
-#define MCFG_DECOCOMN_PALETTE(_palette_tag) \
- downcast<decocomn_device &>(*device).set_palette_tag(_palette_tag);
-
#endif // MAME_VIDEO_DECOCOMN_H