doc: Move use of Q_CLANG_QDOC that caused compile-time assert
It caused a compile-time assert in clang that should not have occurred. It is now moved passed the assert macro. Change-Id: I8311992617de7837ca4604fcc3e5afb17dcda65d Reviewed-by: Topi Reiniö <topi.reinio@qt.io>bb10
parent
643290e49b
commit
32c942ce85
|
|
@ -89,8 +89,10 @@ public:
|
|||
#if defined(Q_COMPILER_UNICODE_STRINGS)
|
||||
Q_DECL_CONSTEXPR QChar(char16_t ch) Q_DECL_NOTHROW : ucs(ushort(ch)) {} // implicit
|
||||
#endif
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
#if defined(Q_OS_WIN)
|
||||
Q_STATIC_ASSERT(sizeof(wchar_t) == sizeof(ushort));
|
||||
#endif
|
||||
#if defined(Q_OS_WIN) || defined(Q_CLANG_QDOC)
|
||||
Q_DECL_CONSTEXPR QChar(wchar_t ch) Q_DECL_NOTHROW : ucs(ushort(ch)) {} // implicit
|
||||
#endif
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue