Commit 6823cecb authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

don't use macros for the Latin1* magic

use typedefs and an inline function instead. that's namespace-safe and
does not produce unhelpful messages when closing parens are missing.
parent 5ac81459
......@@ -92,16 +92,9 @@ Q_DECLARE_METATYPE(Debugger::Internal::GdbMi);
struct _c
inline _c(char c) : m_c(c) {}
inline operator QChar() const { return QLatin1Char(m_c); }
char m_c;
#define _c(c) QLatin1Char(c)
#define __(s) QLatin1String(s)
#define _(s) QString::fromLatin1(s)
typedef QLatin1Char _c;
typedef QLatin1String __;
static inline QString _(const char *s) { return QString::fromLatin1(s); }
static const QString tooltipIName = _("tooltip");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment