Fix support Visual Studio 2015.

This commit is contained in:
Roman Telezhynskyi 2022-08-30 17:18:16 +03:00
parent 4bf01918c9
commit 488fbb6baa
2 changed files with 6 additions and 2 deletions

View File

@ -40,7 +40,7 @@
#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 #if defined(Q_CC_MSVC) && _MSC_VER <= 1900
const qreal VAbstractCurve::minLength = ToPixel(1, Unit::Mm); const qreal VAbstractCurve::minLength = ToPixel(1, Unit::Mm);
#endif #endif

View File

@ -112,8 +112,12 @@ public:
void SetAliasSuffix(const QString &aliasSuffix) override; void SetAliasSuffix(const QString &aliasSuffix) override;
#if defined(Q_CC_MSVC) && _MSC_VER > 1900 #if defined(Q_CC_MSVC)
#if _MSC_VER > 1900
static constexpr qreal minLength = ToPixel(1, Unit::Mm);
#else
static const qreal minLength; static const qreal minLength;
#endif
#else #else
static constexpr qreal minLength = ToPixel(1, Unit::Mm); static constexpr qreal minLength = ToPixel(1, Unit::Mm);
#endif #endif