diff --git a/src/libs/vgeometry/vpointf.cpp b/src/libs/vgeometry/vpointf.cpp index dbd2a4b88..67de60447 100644 --- a/src/libs/vgeometry/vpointf.cpp +++ b/src/libs/vgeometry/vpointf.cpp @@ -101,13 +101,7 @@ VPointF &VPointF::operator =(const VPointF &point) } //--------------------------------------------------------------------------------------------------------------------- -VPointF::operator const QPointF() const -{ - return toQPointF(); -} - -//--------------------------------------------------------------------------------------------------------------------- -VPointF::operator QPointF() +VPointF::operator QPointF() const { return toQPointF(); } diff --git a/src/libs/vgeometry/vpointf.h b/src/libs/vgeometry/vpointf.h index a6b51e0ed..904af4b05 100644 --- a/src/libs/vgeometry/vpointf.h +++ b/src/libs/vgeometry/vpointf.h @@ -58,8 +58,7 @@ public: const Draw &mode = Draw::Calculation); virtual ~VPointF() Q_DECL_OVERRIDE; VPointF &operator=(const VPointF &point); - operator QPointF(); - operator const QPointF() const; + operator QPointF() const; VPointF Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix = QString()) const; qreal mx() const; qreal my() const;