summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-11-16 02:56:49 +0100
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-11-19 04:16:49 +0100
commit4d1930365439fa57facc548a85168c07b1da4570 (patch)
tree8ebe0af69df9945df2999112ec9088cf21c1e614 /src
parent19f9b0d5f54379151eb71e98555b203ad6756276 (diff)
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>
Diffstat (limited to 'src')
-rw-r--r--src/corelib/text/qchar.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/corelib/text/qchar.h b/src/corelib/text/qchar.h
index 59991062a9..04aeed8678 100644
--- a/src/corelib/text/qchar.h
+++ b/src/corelib/text/qchar.h
@@ -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;