Fix support Visual Studio 2015.

This commit is contained in:
Roman Telezhynskyi 2022-08-30 15:41:33 +03:00
parent d56acab0b1
commit 4bf01918c9
2 changed files with 8 additions and 0 deletions

View File

@ -40,6 +40,10 @@
#include "../vmisc/compatibility.h" #include "../vmisc/compatibility.h"
#include "../ifc/exception/vexceptionobjecterror.h" #include "../ifc/exception/vexceptionobjecterror.h"
#if defined(Q_CC_MSVC) && _MSC_VER > 1900
const qreal VAbstractCurve::minLength = ToPixel(1, Unit::Mm);
#endif
VAbstractCurve::VAbstractCurve(const GOType &type, const quint32 &idObject, const Draw &mode) VAbstractCurve::VAbstractCurve(const GOType &type, const quint32 &idObject, const Draw &mode)
:VGObject(type, idObject, mode), d (new VAbstractCurveData()) :VGObject(type, idObject, mode), d (new VAbstractCurveData())
{} {}

View File

@ -112,7 +112,11 @@ public:
void SetAliasSuffix(const QString &aliasSuffix) override; void SetAliasSuffix(const QString &aliasSuffix) override;
#if defined(Q_CC_MSVC) && _MSC_VER > 1900
static const qreal minLength;
#else
static constexpr qreal minLength = ToPixel(1, Unit::Mm); static constexpr qreal minLength = ToPixel(1, Unit::Mm);
#endif
protected: protected:
virtual void CreateName() =0; virtual void CreateName() =0;
virtual void CreateAlias() =0; virtual void CreateAlias() =0;