more C++11 specifier
This commit is contained in:
parent
bc54bfbe97
commit
5fe6a9beb0
@ -46,7 +46,7 @@ class QSK_EXPORT QskMargins : public QMarginsF
|
|||||||
|
|
||||||
QskMargins interpolated( const QskMargins&, qreal progress ) const noexcept;
|
QskMargins interpolated( const QskMargins&, qreal progress ) const noexcept;
|
||||||
|
|
||||||
bool isExpanding() const;
|
constexpr bool isExpanding() const noexcept;
|
||||||
|
|
||||||
static QVariant interpolate( const QskMargins&,
|
static QVariant interpolate( const QskMargins&,
|
||||||
const QskMargins&, qreal progress ) noexcept;
|
const QskMargins&, qreal progress ) noexcept;
|
||||||
@ -84,7 +84,7 @@ inline void QskMargins::setMargins( qreal margin ) noexcept
|
|||||||
*this = QskMargins( margin );
|
*this = QskMargins( margin );
|
||||||
}
|
}
|
||||||
|
|
||||||
inline bool QskMargins::isExpanding() const
|
inline constexpr bool QskMargins::isExpanding() const noexcept
|
||||||
{
|
{
|
||||||
return ( left() > 0 ) || ( right() > 0 ) || ( top() > 0 ) || ( right() > 0 );
|
return ( left() > 0 ) || ( right() > 0 ) || ( top() > 0 ) || ( right() > 0 );
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user