Skip to content
Permalink
Browse files
fix warnings
  • Loading branch information
jef-n committed Dec 9, 2012
1 parent 9721736 commit 1c14bea
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
@@ -355,7 +355,7 @@ void QgsMapToolOffsetCurve::setOffsetForRubberBand( double offset, bool leftSide
int quadSegments = s.value( "/qgis/digitizing/offset_quad_seg", 8 ).toInt();
double mitreLimit = s.value( "/qgis/digitizing/offset_miter_limit", 5.0 ).toDouble();

GEOSGeometry* offsetGeom = GEOSOffsetCurve( geosGeom, ( leftSide > 0 ) ? offset : -offset, quadSegments, joinStyle, mitreLimit );
GEOSGeometry* offsetGeom = GEOSOffsetCurve( geosGeom, leftSide ? offset : -offset, quadSegments, joinStyle, mitreLimit );
if ( !offsetGeom )
{
deleteRubberBandAndGeometry();
@@ -960,11 +960,9 @@ RASTER_MAP_TYPE QgsGrassGisLib::grassRasterType( QgsRasterBlock::DataType qgisTy
case QgsRasterBlock::CFloat64:
case QgsRasterBlock::ARGB32:
case QgsRasterBlock::ARGB32_Premultiplied:
return -1;
default:
return -1;
}
return -1; // not reached
}

char GRASS_LIB_EXPORT *G_tempfile( void )

0 comments on commit 1c14bea

Please sign in to comment.