diff options
Diffstat (limited to 'src/mame/machine/mega32x.h')
-rw-r--r-- | src/mame/machine/mega32x.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/mame/machine/mega32x.h b/src/mame/machine/mega32x.h index ed68d3e4d87..e8dc32e465e 100644 --- a/src/mame/machine/mega32x.h +++ b/src/mame/machine/mega32x.h @@ -31,7 +31,7 @@ public: } // 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_READ32_MEMBER( _32x_sh2_master_4000_common_4002_r ); DECLARE_READ32_MEMBER( _32x_sh2_slave_4000_common_4002_r ); @@ -247,7 +247,4 @@ protected: DECLARE_DEVICE_TYPE(SEGA_32X_NTSC, sega_32x_ntsc_device) DECLARE_DEVICE_TYPE(SEGA_32X_PAL, sega_32x_pal_device) -#define MCFG_SEGA_32X_PALETTE(_palette_tag) \ - downcast<sega_32x_device &>(*device).set_palette_tag(_palette_tag); - #endif // MAME_MACHINE_MEGA32X_H |