From 4d1930365439fa57facc548a85168c07b1da4570 Mon Sep 17 00:00:00 2001 From: Giuseppe D'Angelo Date: Mon, 16 Nov 2020 02:56:49 +0100 Subject: QChar: use =delete instead of private Use the idiomatic way to block access to some functions. Change-Id: I6760dac6ce18910bf30b527b313882e394049349 Reviewed-by: Lars Knoll --- src/corelib/text/qchar.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3