From 3db69c34eee2e8ec3d4164a0b680ee8344f10c74 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Tue, 7 Jan 2020 08:28:13 +0200 Subject: [PATCH] Noexcept-expression evaluates to 'false' because of a call to 'constexpr VSAPoint::VSAPoint()'. --HG-- branch : develop --- src/libs/vlayout/vsapoint.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libs/vlayout/vsapoint.h b/src/libs/vlayout/vsapoint.h index f2a5e23f1..eb76aa587 100644 --- a/src/libs/vlayout/vsapoint.h +++ b/src/libs/vlayout/vsapoint.h @@ -30,6 +30,7 @@ #include "../vmisc/diagnostic.h" #include "../vmisc/def.h" +#include "../ifc/ifcdef.h" #include @@ -43,7 +44,7 @@ QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor") class VSAPoint : public QPointF { public: - Q_DECL_CONSTEXPR VSAPoint(); + Q_DECL_CONSTEXPR VSAPoint() V_NOEXCEPT_EXPR (true); Q_DECL_CONSTEXPR VSAPoint(qreal xpos, qreal ypos); Q_DECL_CONSTEXPR explicit VSAPoint(QPointF p); @@ -85,7 +86,7 @@ Q_DECLARE_METATYPE(VSAPoint) Q_DECLARE_TYPEINFO(VSAPoint, Q_MOVABLE_TYPE); //--------------------------------------------------------------------------------------------------------------------- -Q_DECL_CONSTEXPR inline VSAPoint::VSAPoint() +Q_DECL_CONSTEXPR inline VSAPoint::VSAPoint() V_NOEXCEPT_EXPR (true) {} //---------------------------------------------------------------------------------------------------------------------