From 74218e82bcf85fc48c46f8ab4cdb450b820039c1 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Sun, 12 Jan 2020 13:25:35 +0200 Subject: [PATCH] Try another way to fix build. --HG-- branch : develop --- src/libs/vgeometry/vellipticalarc.cpp | 2 +- src/libs/vmisc/def.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/vgeometry/vellipticalarc.cpp b/src/libs/vgeometry/vellipticalarc.cpp index bc10ea2a8..621c6e371 100644 --- a/src/libs/vgeometry/vellipticalarc.cpp +++ b/src/libs/vgeometry/vellipticalarc.cpp @@ -296,7 +296,7 @@ QVector VEllipticalArc::GetPoints() const { polygon = ConstFirst (path.toSubpathPolygons()); - if (not polygon.isEmpty() && not VFuzzyComparePoints(GetP1(), ConstFirst (polygon))) + if (not polygon.isEmpty() && not VFuzzyComparePoints(GetP1(), ConstFirst (polygon))) { polygon.removeFirst(); // remove point (0;0) } diff --git a/src/libs/vmisc/def.h b/src/libs/vmisc/def.h index 490134ded..642113056 100644 --- a/src/libs/vmisc/def.h +++ b/src/libs/vmisc/def.h @@ -371,7 +371,7 @@ inline const T& ConstFirst (const Cont &container) } template -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();