Try another way to fix build.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2020-01-12 13:25:35 +02:00
parent f63e3ff1ad
commit 74218e82bc
2 changed files with 2 additions and 2 deletions

View File

@ -296,7 +296,7 @@ QVector<QPointF> VEllipticalArc::GetPoints() const
{
polygon = ConstFirst (path.toSubpathPolygons());
if (not polygon.isEmpty() && not VFuzzyComparePoints(GetP1(), ConstFirst (polygon)))
if (not polygon.isEmpty() && not VFuzzyComparePoints(GetP1(), ConstFirst<QPointF> (polygon)))
{
polygon.removeFirst(); // remove point (0;0)
}

View File

@ -371,7 +371,7 @@ inline const T& ConstFirst (const Cont<T> &container)
}
template <typename T, typename C>
inline const auto& ConstFirst (const C &container)
inline const T& ConstFirst (const C &container)
{
#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0)
return container.constFirst();