diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2014-03-01 16:11:33 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-03-01 23:23:12 +0100 |
commit | 718c5eafa051c6e2a5e271034a116c0a42b1589a (patch) | |
tree | 5742334c6a07fb6f697c24b2bed8d278a70ac83b /src/corelib/tools/qchar.h | |
parent | 12372960f8ab3c50231c4f5c21aa6a87c69e9915 (diff) |
Make QChar::unicode constexpr
Change-Id: I93fe2ace0aeaa29c86ef97e622d3ab28095eac89
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/tools/qchar.h')
-rw-r--r-- | src/corelib/tools/qchar.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/tools/qchar.h b/src/corelib/tools/qchar.h index 266effb66a..88758bdd6d 100644 --- a/src/corelib/tools/qchar.h +++ b/src/corelib/tools/qchar.h @@ -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) |