Skip to content

Commit 2fb6c10

Browse files
committed
Minor Coverity fixes
1 parent 4774c87 commit 2fb6c10

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/app/nodetool/qgsmaptoolnodetool.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,6 @@ class QgsMapToolNodeTool: public QgsMapToolEdit
120120
/** Dock widget which allows to edit vertices */
121121
QgsNodeEditor* mNodeEditor;
122122

123-
/** Feature id of another feature where user clicked */
124-
QgsFeatureId mAnother;
125-
126123
/** Stored position of last press down action to count how much vertexes should be moved */
127124
QPoint mPressCoordinates;
128125

src/core/geometry/qgsgeometry.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ void QgsGeometry::detach( bool cloneGeom )
109109

110110
if ( d->ref > 1 )
111111
{
112-
d->ref.deref();
112+
( void )d->ref.deref();
113113
QgsAbstractGeometryV2* cGeom = 0;
114114

115115
if ( d->geometry && cloneGeom )

src/gui/qgsgeometryrubberband.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ void QgsGeometryRubberBand::paint( QPainter* painter )
7373

7474
void QgsGeometryRubberBand::drawVertex( QPainter* p, double x, double y )
7575
{
76-
qreal s = ( mIconSize - 1 ) / 2;
76+
qreal s = ( mIconSize - 1 ) / 2.0;
7777

7878
switch ( mIconType )
7979
{

0 commit comments

Comments
 (0)