QChar: use =delete instead of private

Use the idiomatic way to block access to some functions.

Change-Id: I6760dac6ce18910bf30b527b313882e394049349
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
Giuseppe D'Angelo 2020-11-16 02:56:49 +01:00
parent 19f9b0d5f5
commit 4d19303654

View File

@ -631,8 +631,8 @@ private:
static bool QT_FASTCALL isLetterOrNumber_helper(char32_t ucs4) noexcept Q_DECL_CONST_FUNCTION;
#ifdef QT_NO_CAST_FROM_ASCII
QChar(char c) noexcept;
QChar(uchar c) noexcept;
QChar(char c) = delete;
QChar(uchar c) = delete;
#endif
char16_t ucs;