Skip to content

Commit d10ec1d

Browse files
committedMar 23, 2016
fix warnings
(cherry picked from commit eefb046)
1 parent c128a55 commit d10ec1d

8 files changed

+16
-0
lines changed
 

‎src/core/composer/qgscomposermapgrid.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1773,6 +1773,7 @@ int QgsComposerMapGrid::xGridLinesCRSTransform( const QgsRectangle& bbox, const
17731773
}
17741774
catch ( QgsCsException & cse )
17751775
{
1776+
Q_UNUSED( cse );
17761777
QgsDebugMsg( QString( "Caught CRS exception %1" ).arg( cse.what() ) );
17771778
}
17781779

@@ -1848,6 +1849,7 @@ int QgsComposerMapGrid::yGridLinesCRSTransform( const QgsRectangle& bbox, const
18481849
}
18491850
catch ( QgsCsException & cse )
18501851
{
1852+
Q_UNUSED( cse );
18511853
QgsDebugMsg( QString( "Caught CRS exception %1" ).arg( cse.what() ) );
18521854
}
18531855

@@ -2406,6 +2408,7 @@ int QgsComposerMapGrid::crsGridParams( QgsRectangle& crsRect, QgsCoordinateTrans
24062408
}
24072409
catch ( QgsCsException & cse )
24082410
{
2411+
Q_UNUSED( cse );
24092412
QgsDebugMsg( QString( "Caught CRS exception %1" ).arg( cse.what() ) );
24102413
return 1;
24112414
}

‎src/core/geometry/qgsgeometryfactory.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ QgsAbstractGeometryV2* QgsGeometryFactory::geomFromWkb( QgsConstWkbPtr wkbPtr )
5151
}
5252
catch ( const QgsWkbException &e )
5353
{
54+
Q_UNUSED( e );
5455
QgsDebugMsg( "WKB exception: " + e.what() );
5556
delete geom;
5657
geom = nullptr;

‎src/core/qgsmaprenderer.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -694,6 +694,7 @@ void QgsMapRenderer::setDestinationCrs( const QgsCoordinateReferenceSystem& crs,
694694
}
695695
catch ( QgsCsException &e )
696696
{
697+
Q_UNUSED( e );
697698
QgsDebugMsg( QString( "Transform error caught: %1" ).arg( e.what() ) );
698699
}
699700
}

‎src/core/qgsmaprenderercustompainterjob.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,12 @@ void QgsMapRendererCustomPainterJob::staticRender( QgsMapRendererCustomPainterJo
217217
}
218218
catch ( QgsException & e )
219219
{
220+
Q_UNUSED( e );
220221
QgsDebugMsg( "Caught unhandled QgsException: " + e.what() );
221222
}
222223
catch ( std::exception & e )
223224
{
225+
Q_UNUSED( e );
224226
QgsDebugMsg( "Caught unhandled std::exception: " + QString::fromAscii( e.what() ) );
225227
}
226228
catch ( ... )

‎src/core/qgsmaprendererparalleljob.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,10 +237,12 @@ void QgsMapRendererParallelJob::renderLayerStatic( LayerRenderJob& job )
237237
}
238238
catch ( QgsException & e )
239239
{
240+
Q_UNUSED( e );
240241
QgsDebugMsg( "Caught unhandled QgsException: " + e.what() );
241242
}
242243
catch ( std::exception & e )
243244
{
245+
Q_UNUSED( e );
244246
QgsDebugMsg( "Caught unhandled std::exception: " + QString::fromAscii( e.what() ) );
245247
}
246248
catch ( ... )
@@ -263,10 +265,12 @@ void QgsMapRendererParallelJob::renderLabelsStatic( QgsMapRendererParallelJob* s
263265
}
264266
catch ( QgsException & e )
265267
{
268+
Q_UNUSED( e );
266269
QgsDebugMsg( "Caught unhandled QgsException: " + e.what() );
267270
}
268271
catch ( std::exception & e )
269272
{
273+
Q_UNUSED( e );
270274
QgsDebugMsg( "Caught unhandled std::exception: " + QString::fromAscii( e.what() ) );
271275
}
272276
catch ( ... )

‎src/core/qgsmaptopixelgeometrysimplifier.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,7 @@ bool QgsMapToPixelSimplifier::simplifyGeometry( QgsGeometry *geometry, int simpl
413413
}
414414
catch ( const QgsWkbException &e )
415415
{
416+
Q_UNUSED( e );
416417
QgsDebugMsg( QString( "Exception thrown by simplifier: %1" ) .arg( e.what() ) );
417418
}
418419
delete [] targetWkb;

‎src/core/qgspointlocator.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -671,6 +671,7 @@ bool QgsPointLocator::rebuildIndex( int maxFeaturesToIndex )
671671
}
672672
catch ( const QgsException& e )
673673
{
674+
Q_UNUSED( e );
674675
// See http://hub.qgis.org/issues/12634
675676
QgsDebugMsg( QString( "could not transform bounding box to map, skipping the snap filter (%1)" ).arg( e.what() ) );
676677
}
@@ -692,6 +693,7 @@ bool QgsPointLocator::rebuildIndex( int maxFeaturesToIndex )
692693
}
693694
catch ( const QgsException& e )
694695
{
696+
Q_UNUSED( e );
695697
// See http://hub.qgis.org/issues/12634
696698
QgsDebugMsg( QString( "could not transform geometry to map, skipping the snap for it (%1)" ).arg( e.what() ) );
697699
continue;
@@ -770,6 +772,7 @@ void QgsPointLocator::onFeatureAdded( QgsFeatureId fid )
770772
}
771773
catch ( const QgsException& e )
772774
{
775+
Q_UNUSED( e );
773776
// See http://hub.qgis.org/issues/12634
774777
QgsDebugMsg( QString( "could not transform geometry to map, skipping the snap for it (%1)" ).arg( e.what() ) );
775778
return;

‎src/gui/qgsmapcanvas.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ void QgsMapCanvas::setDestinationCrs( const QgsCoordinateReferenceSystem &crs )
532532
}
533533
catch ( QgsCsException &e )
534534
{
535+
Q_UNUSED( e );
535536
QgsDebugMsg( QString( "Transform error caught: %1" ).arg( e.what() ) );
536537
}
537538
}

0 commit comments

Comments
 (0)
Please sign in to comment.