Skip to content

Commit 1c14bea

Browse files
committedDec 9, 2012
fix warnings
1 parent 9721736 commit 1c14bea

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed
 

‎src/app/qgsmaptooloffsetcurve.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ void QgsMapToolOffsetCurve::setOffsetForRubberBand( double offset, bool leftSide
355355
int quadSegments = s.value( "/qgis/digitizing/offset_quad_seg", 8 ).toInt();
356356
double mitreLimit = s.value( "/qgis/digitizing/offset_miter_limit", 5.0 ).toDouble();
357357

358-
GEOSGeometry* offsetGeom = GEOSOffsetCurve( geosGeom, ( leftSide > 0 ) ? offset : -offset, quadSegments, joinStyle, mitreLimit );
358+
GEOSGeometry* offsetGeom = GEOSOffsetCurve( geosGeom, leftSide ? offset : -offset, quadSegments, joinStyle, mitreLimit );
359359
if ( !offsetGeom )
360360
{
361361
deleteRubberBandAndGeometry();

‎src/providers/grass/qgsgrassgislib.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -960,11 +960,9 @@ RASTER_MAP_TYPE QgsGrassGisLib::grassRasterType( QgsRasterBlock::DataType qgisTy
960960
case QgsRasterBlock::CFloat64:
961961
case QgsRasterBlock::ARGB32:
962962
case QgsRasterBlock::ARGB32_Premultiplied:
963-
return -1;
964963
default:
965964
return -1;
966965
}
967-
return -1; // not reached
968966
}
969967

970968
char GRASS_LIB_EXPORT *G_tempfile( void )

0 commit comments

Comments
 (0)
Please sign in to comment.