diff options
Diffstat (limited to 'src/lib/netlist/plib/ptypes.h')
-rw-r--r-- | src/lib/netlist/plib/ptypes.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/netlist/plib/ptypes.h b/src/lib/netlist/plib/ptypes.h index c40cd283787..0934a86fdf2 100644 --- a/src/lib/netlist/plib/ptypes.h +++ b/src/lib/netlist/plib/ptypes.h @@ -83,7 +83,7 @@ namespace plib enum E { __VA_ARGS__ }; \ ename (E v) : m_v(v) { } \ bool set_from_string (const pstring &s) { \ - static const char *strings = # __VA_ARGS__; \ + static char const *const strings = # __VA_ARGS__; \ int f = from_string_int(strings, s.c_str()); \ if (f>=0) { m_v = static_cast<E>(f); return true; } else { return false; } \ } \ @@ -91,7 +91,7 @@ namespace plib bool operator==(const ename &rhs) const {return m_v == rhs.m_v;} \ bool operator==(const E &rhs) const {return m_v == rhs;} \ const pstring name() const { \ - static const char *strings = # __VA_ARGS__; \ + static char const *const strings = # __VA_ARGS__; \ return nthstr(static_cast<int>(m_v), strings); \ } \ private: E m_v; }; |