Skip to content

Commit 8e12578

Browse files
committed
Fix two minor Coverity uninitialized member warnings
1 parent c5a58a7 commit 8e12578

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/analysis/raster/qgsalignraster.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,9 @@ bool QgsAlignRaster::suggestedWarpOutput( const QgsAlignRaster::RasterInfo& info
556556

557557

558558
QgsAlignRaster::RasterInfo::RasterInfo( const QString& layerpath )
559-
: mBandCnt( 0 )
559+
: mXSize( 0 )
560+
, mYSize( 0 )
561+
, mBandCnt( 0 )
560562
{
561563
mDataset = GDALOpen( layerpath.toLocal8Bit().constData(), GA_ReadOnly );
562564
if ( !mDataset )

tests/src/core/testqgscomposermapoverview.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class TestQgsComposerMapOverview : public QObject
3636
TestQgsComposerMapOverview()
3737
: mComposition( 0 )
3838
, mComposerMap( 0 )
39+
, mMapSettings( 0 )
3940
, mRasterLayer( 0 )
4041
{}
4142

0 commit comments

Comments
 (0)