From 5fe6a9beb056efe4b14763a8662fdb0675f86941 Mon Sep 17 00:00:00 2001 From: Uwe Rathmann Date: Sun, 3 May 2020 13:39:47 +0200 Subject: [PATCH] more C++11 specifier --- src/common/QskMargins.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/QskMargins.h b/src/common/QskMargins.h index 4fe4559d..c1b5dbd8 100644 --- a/src/common/QskMargins.h +++ b/src/common/QskMargins.h @@ -46,7 +46,7 @@ class QSK_EXPORT QskMargins : public QMarginsF QskMargins interpolated( const QskMargins&, qreal progress ) const noexcept; - bool isExpanding() const; + constexpr bool isExpanding() const noexcept; static QVariant interpolate( const QskMargins&, const QskMargins&, qreal progress ) noexcept; @@ -84,7 +84,7 @@ inline void QskMargins::setMargins( qreal margin ) noexcept *this = QskMargins( margin ); } -inline bool QskMargins::isExpanding() const +inline constexpr bool QskMargins::isExpanding() const noexcept { return ( left() > 0 ) || ( right() > 0 ) || ( top() > 0 ) || ( right() > 0 ); }