From ff776a3059b25f8dd3c3abbd6aa8ffa95ec9cf7a Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 20 Oct 2020 11:42:50 +0200 Subject: Whitespace cleanup in corelib/global Change-Id: I087d7d949cfd43e48e8a008621a4eeaa9d104ceb Reviewed-by: Thiago Macieira --- src/corelib/global/qnumeric_p.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/corelib/global/qnumeric_p.h') diff --git a/src/corelib/global/qnumeric_p.h b/src/corelib/global/qnumeric_p.h index c7d44591cc..a11057dfff 100644 --- a/src/corelib/global/qnumeric_p.h +++ b/src/corelib/global/qnumeric_p.h @@ -130,7 +130,7 @@ Q_DECL_CONST_FUNCTION static inline int fpclassify(float f) { return std::fpclas constexpr Q_DECL_CONST_FUNCTION static inline double qt_inf() noexcept { static_assert(std::numeric_limits::has_infinity, - "platform has no definition for infinity for type double"); + "platform has no definition for infinity for type double"); return std::numeric_limits::infinity(); } @@ -138,7 +138,7 @@ constexpr Q_DECL_CONST_FUNCTION static inline double qt_inf() noexcept constexpr Q_DECL_CONST_FUNCTION static inline double qt_snan() noexcept { static_assert(std::numeric_limits::has_signaling_NaN, - "platform has no definition for signaling NaN for type double"); + "platform has no definition for signaling NaN for type double"); return std::numeric_limits::signaling_NaN(); } #endif @@ -147,7 +147,7 @@ constexpr Q_DECL_CONST_FUNCTION static inline double qt_snan() noexcept constexpr Q_DECL_CONST_FUNCTION static inline double qt_qnan() noexcept { static_assert(std::numeric_limits::has_quiet_NaN, - "platform has no definition for quiet NaN for type double"); + "platform has no definition for quiet NaN for type double"); return std::numeric_limits::quiet_NaN(); } @@ -203,7 +203,8 @@ namespace { This function works for v containing infinities, but not NaN. It's the caller's responsibility to exclude that possibility before calling it. */ -template static inline bool convertDoubleTo(double v, T *value, bool allow_precision_upgrade = true) +template +static inline bool convertDoubleTo(double v, T *value, bool allow_precision_upgrade = true) { static_assert(std::numeric_limits::is_integer); -- cgit v1.2.3