Skip to content

Commit ed69f1c

Browse files
committedAug 24, 2015
Fix warnings
1 parent f5e763a commit ed69f1c

File tree

8 files changed

+28
-2
lines changed

8 files changed

+28
-2
lines changed
 

‎src/app/qgsmaptooladdpart.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void QgsMapToolAddPart::canvasMapReleaseEvent( QgsMapMouseEvent * e )
7070
return;
7171
}
7272

73-
int errorCode;
73+
int errorCode = 0;
7474
switch ( mode() )
7575
{
7676
case CapturePoint:
@@ -142,7 +142,6 @@ void QgsMapToolAddPart::canvasMapReleaseEvent( QgsMapMouseEvent * e )
142142
}
143143

144144
vlayer->beginEditCommand( tr( "Part added" ) );
145-
int errorCode = 0;
146145
if ( mode() == CapturePolygon )
147146
{
148147
//avoid intersections

‎src/core/geometry/qgsabstractgeometryv2.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class CORE_EXPORT QgsAbstractGeometryV2
217217

218218
/** Transforms the geometry using a coordinate transform
219219
* @param ct coordinate transform
220+
@param d transformation direction
220221
*/
221222
virtual void transform( const QgsCoordinateTransform& ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform ) = 0;
222223

‎src/core/geometry/qgscircularstringv2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ class CORE_EXPORT QgsCircularStringV2: public QgsCurveV2
6868
virtual QgsLineStringV2* curveToLine() const override;
6969

7070
void draw( QPainter& p ) const override;
71+
/** Transforms the geometry using a coordinate transform
72+
* @param ct coordinate transform
73+
@param d transformation direction
74+
*/
7175
void transform( const QgsCoordinateTransform& ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform ) override;
7276
void transform( const QTransform& t ) override;
7377
#if 0

‎src/core/geometry/qgscompoundcurvev2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,10 @@ class CORE_EXPORT QgsCompoundCurveV2: public QgsCurveV2
8181
void addVertex( const QgsPointV2& pt );
8282

8383
void draw( QPainter& p ) const override;
84+
/** Transforms the geometry using a coordinate transform
85+
* @param ct coordinate transform
86+
@param d transformation direction
87+
*/
8488
void transform( const QgsCoordinateTransform& ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform ) override;
8589
void transform( const QTransform& t ) override;
8690
void addToPainterPath( QPainterPath& path ) const override;

‎src/core/geometry/qgscurvepolygonv2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ class CORE_EXPORT QgsCurvePolygonV2: public QgsSurfaceV2
7676
bool removeInteriorRing( int nr );
7777

7878
virtual void draw( QPainter& p ) const override;
79+
/** Transforms the geometry using a coordinate transform
80+
* @param ct coordinate transform
81+
@param d transformation direction
82+
*/
7983
void transform( const QgsCoordinateTransform& ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform ) override;
8084
void transform( const QTransform& t ) override;
8185

‎src/core/geometry/qgsgeometrycollectionv2.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ class CORE_EXPORT QgsGeometryCollectionV2: public QgsAbstractGeometryV2
6363
*/
6464
virtual bool removeGeometry( int nr );
6565

66+
/** Transforms the geometry using a coordinate transform
67+
* @param ct coordinate transform
68+
@param d transformation direction
69+
*/
6670
virtual void transform( const QgsCoordinateTransform& ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform ) override;
6771
void transform( const QTransform& t ) override;
6872
#if 0

‎src/core/geometry/qgslinestringv2.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,11 @@ class CORE_EXPORT QgsLineStringV2: public QgsCurveV2
6464
void append( const QgsLineStringV2* line );
6565

6666
void draw( QPainter& p ) const override;
67+
68+
/** Transforms the geometry using a coordinate transform
69+
* @param ct coordinate transform
70+
@param d transformation direction
71+
*/
6772
void transform( const QgsCoordinateTransform& ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform ) override;
6873
void transform( const QTransform& t ) override;
6974

‎src/core/geometry/qgspointv2.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,11 @@ class CORE_EXPORT QgsPointV2: public QgsAbstractGeometryV2
6767
virtual QgsRectangle calculateBoundingBox() const override { return QgsRectangle( mX, mY, mX, mY );}
6868

6969
void draw( QPainter& p ) const override;
70+
71+
/** Transforms the geometry using a coordinate transform
72+
* @param ct coordinate transform
73+
@param d transformation direction
74+
*/
7075
void transform( const QgsCoordinateTransform& ct, QgsCoordinateTransform::TransformDirection d = QgsCoordinateTransform::ForwardTransform ) override;
7176
void transform( const QTransform& t ) override;
7277

0 commit comments

Comments
 (0)
Please sign in to comment.