diff --git a/src/corelib/text/qstringliteral.h b/src/corelib/text/qstringliteral.h index 4d24937eb74..d86e6eafd9f 100644 --- a/src/corelib/text/qstringliteral.h +++ b/src/corelib/text/qstringliteral.h @@ -55,15 +55,10 @@ QT_BEGIN_NAMESPACE // to lacking stdlib support. But QStringLiteral only needs the // core language feature, so just use u"" here unconditionally: -typedef char16_t qunicodechar; - -static_assert(sizeof(qunicodechar) == 2, - "qunicodechar must typedef an integral type of size 2"); - #define QT_UNICODE_LITERAL(str) u"" str #define QStringLiteral(str) \ (QString(QStringPrivate(nullptr, \ - reinterpret_cast(const_cast(QT_UNICODE_LITERAL(str))), \ + const_cast(QT_UNICODE_LITERAL(str)), \ sizeof(QT_UNICODE_LITERAL(str))/2 - 1))) \ /**/