From 6f0df02d002356625f10683ef84da7685d92a2c4 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Wed, 12 Aug 2020 14:14:02 +0200 Subject: Replace Qt CONSTEXPR defines with constexpr Both normal and relaxed constexpr are required by our new minimum of C++17. Change-Id: Ic028b88a2e7a6cb7d5925f3133b9d54859a81744 Reviewed-by: Sona Kurazyan --- src/corelib/kernel/qsystemerror_p.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/corelib/kernel/qsystemerror_p.h') diff --git a/src/corelib/kernel/qsystemerror_p.h b/src/corelib/kernel/qsystemerror_p.h index abc2f1efc1..cae04aeaa1 100644 --- a/src/corelib/kernel/qsystemerror_p.h +++ b/src/corelib/kernel/qsystemerror_p.h @@ -66,15 +66,15 @@ public: NativeError }; - Q_DECL_CONSTEXPR explicit QSystemError(int error, ErrorScope scope) + constexpr explicit QSystemError(int error, ErrorScope scope) : errorCode(error), errorScope(scope) { } - Q_DECL_CONSTEXPR QSystemError() = default; + constexpr QSystemError() = default; QString toString() const { return string(errorScope, errorCode); } - Q_DECL_CONSTEXPR ErrorScope scope() const { return errorScope; } - Q_DECL_CONSTEXPR int error() const { return errorCode; } + constexpr ErrorScope scope() const { return errorScope; } + constexpr int error() const { return errorCode; } static Q_CORE_EXPORT QString string(ErrorScope errorScope, int errorCode); static Q_CORE_EXPORT QString stdString(int errorCode = -1); -- cgit v1.2.3