Make QChar::unicode constexpr

Change-Id: I93fe2ace0aeaa29c86ef97e622d3ab28095eac89
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
This commit is contained in:
Giuseppe D'Angelo 2014-03-01 16:11:33 +01:00 committed by The Qt Project
parent 12372960f8
commit 718c5eafa0

View File

@ -384,7 +384,7 @@ public:
QT_DEPRECATED inline char toAscii() const { return toLatin1(); }
#endif
inline char toLatin1() const;
inline ushort unicode() const { return ucs; }
Q_DECL_CONSTEXPR inline ushort unicode() const { return ucs; }
inline ushort &unicode() { return ucs; }
#if QT_DEPRECATED_SINCE(5, 0)