Skip to content

Commit

Permalink
Fix two minor Coverity uninitialized member warnings
Browse files Browse the repository at this point in the history
nyalldawson committed Jul 12, 2015
1 parent c5a58a7 commit 8e12578
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/analysis/raster/qgsalignraster.cpp
Original file line number Diff line number Diff line change
@@ -556,7 +556,9 @@ bool QgsAlignRaster::suggestedWarpOutput( const QgsAlignRaster::RasterInfo& info


QgsAlignRaster::RasterInfo::RasterInfo( const QString& layerpath )
: mBandCnt( 0 )
: mXSize( 0 )
, mYSize( 0 )
, mBandCnt( 0 )
{
mDataset = GDALOpen( layerpath.toLocal8Bit().constData(), GA_ReadOnly );
if ( !mDataset )
1 change: 1 addition & 0 deletions tests/src/core/testqgscomposermapoverview.cpp
Original file line number Diff line number Diff line change
@@ -36,6 +36,7 @@ class TestQgsComposerMapOverview : public QObject
TestQgsComposerMapOverview()
: mComposition( 0 )
, mComposerMap( 0 )
, mMapSettings( 0 )
, mRasterLayer( 0 )
{}

0 comments on commit 8e12578

Please sign in to comment.