summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qchar.h
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-11-16 03:06:10 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-11-18 09:38:09 +0100
commit29942dcbb1ecd7a9ffd60347221df13c5529b9fc (patch)
tree1b00e30f873cb4fcc383dfbdb057c41b1bba25e2 /src/corelib/text/qchar.h
parentbefa3729db0d1010694bd1bb4cbadd36ff5c49fb (diff)
Centralize the wchar_t == char16_t check on Windows
Don't push it onto every TU that includes QChar (... approx. everything that uses Qt). Change-Id: I4a07ce9e38a347b45315db93b0c5b90c20bacdbc Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/corelib/text/qchar.h')
-rw-r--r--src/corelib/text/qchar.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/corelib/text/qchar.h b/src/corelib/text/qchar.h
index f66671e27c..5325b9ca8d 100644
--- a/src/corelib/text/qchar.h
+++ b/src/corelib/text/qchar.h
@@ -116,9 +116,6 @@ public:
constexpr Q_IMPLICIT QChar(SpecialCharacter s) noexcept : ucs(char16_t(s)) {} // implicit
constexpr Q_IMPLICIT QChar(QLatin1Char ch) noexcept : ucs(ch.unicode()) {} // implicit
constexpr Q_IMPLICIT QChar(char16_t ch) noexcept : ucs(ch) {} // implicit
-#if defined(Q_OS_WIN)
- static_assert(sizeof(wchar_t) == sizeof(char16_t));
-#endif
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
constexpr Q_IMPLICIT QChar(wchar_t ch) noexcept : ucs(char16_t(ch)) {} // implicit
#endif