Skip to content
Permalink
Browse files

Fix some warnings

  • Loading branch information
m-kuhn committed Nov 19, 2014
1 parent 2d69f98 commit 256b2652c3483727dbcfeaa99e81d60f5acc2afd
@@ -171,7 +171,8 @@ QVariant QgsSymbolV2LegendNode::data( int role ) const
QPixmap pix;
if ( mItem.symbol() )
{
double scale, mupp = 0;
double scale = 0.0;
double mupp = 0.0;
int dpi = 0;
if ( model() )
model()->legendMapViewData( &mupp, &dpi, &scale );
@@ -54,7 +54,6 @@ class TestQgsComposerRotation: public QObject
QgsComposition* mComposition;
QgsComposerShape* mComposerRect;
QgsComposerLabel* mComposerLabel;
QgsMapRenderer* mMapRenderer;
QgsComposerMap* mComposerMap;
QgsMapSettings mMapSettings;
QgsRasterLayer* mRasterLayer;
@@ -431,7 +431,7 @@ bool TestQgsGeometry::renderCheck( QString theTestName, QString theComment , int
QgsRenderChecker myChecker;
myChecker.setControlName( "expected_" + theTestName );
myChecker.setRenderedImage( myFileName );
bool myResultFlag = myChecker.compareImages( theTestName );
bool myResultFlag = myChecker.compareImages( theTestName, mismatchCount );
mReport += myChecker.report();
return myResultFlag;
}

0 comments on commit 256b265

Please sign in to comment.
You can’t perform that action at this time.