From 239dc71d438ca9c3720d0bb4301ea35a72d13917 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Mon, 1 Jun 2015 16:45:51 +0200 Subject: [PATCH] Fix compiling --- src/core/geometry/qgsabstractgeometryv2.cpp | 9 +++++++++ src/core/geometry/qgsabstractgeometryv2.h | 4 +--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/core/geometry/qgsabstractgeometryv2.cpp b/src/core/geometry/qgsabstractgeometryv2.cpp index 877ffce9a62..829a3cfce1b 100644 --- a/src/core/geometry/qgsabstractgeometryv2.cpp +++ b/src/core/geometry/qgsabstractgeometryv2.cpp @@ -63,6 +63,15 @@ bool QgsAbstractGeometryV2::isMeasure() const return ( mWkbType >= 2001 && mWkbType <= 3012 ); } +void QgsAbstractGeometryV2::clip( const QgsRectangle& rect ) +{ + // TODO + // - Implementation + // - API doc in header + + // Don't insert Q_UNUSED, so we have a warning that reminds us of this TODO +} + void QgsAbstractGeometryV2::setZMTypeFromSubGeometry( const QgsAbstractGeometryV2* subgeom, QgsWKBTypes::Type baseGeomType ) { if ( !subgeom ) diff --git a/src/core/geometry/qgsabstractgeometryv2.h b/src/core/geometry/qgsabstractgeometryv2.h index a101985f931..9d0790e8d5d 100644 --- a/src/core/geometry/qgsabstractgeometryv2.h +++ b/src/core/geometry/qgsabstractgeometryv2.h @@ -223,9 +223,7 @@ class CORE_EXPORT QgsAbstractGeometryV2 */ virtual void transform( const QTransform& t ) = 0; -#if 0 - virtual void clip( const QgsRectangle& rect ) { Q_UNUSED( rect ); } //todo -#endif + virtual void clip( const QgsRectangle& rect ); //todo /** Draws the geometry using the specified QPainter. * @param p destination QPainter