Skip to content

Commit

Permalink
Fix coverity uninitialized variable warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 7, 2016
1 parent 3c530a6 commit 6d8990b
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/qgisapp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1181,6 +1181,7 @@ QgisApp::QgisApp()
, mBookMarksDockWidget( nullptr )
, mSnappingWidget( nullptr )
, mSnappingDialogContainer( nullptr )
, mSnappingDialogWidget( nullptr )
, mPluginManager( nullptr )
, mMapStylingDock( nullptr )
, mMapStyleWidget( nullptr )
Expand Down
1 change: 1 addition & 0 deletions src/app/qgssnappinglayertreemodel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ QgsSnappingLayerTreeModel::QgsSnappingLayerTreeModel( QgsProject* project, QObje
: QSortFilterProxyModel( parent )
, mProject( project )
, mIndividualLayerSettings( project->snappingConfig().individualLayerSettings() )
, mLayerTreeModel( nullptr )
{
connect( project, &QgsProject::snappingConfigChanged, this, &QgsSnappingLayerTreeModel::onSnappingSettingsChanged );
connect( project, &QgsProject::avoidIntersectionsListChanged, this, &QgsSnappingLayerTreeModel::onSnappingSettingsChanged );
Expand Down
2 changes: 2 additions & 0 deletions src/core/composer/qgscomposertablev2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ QgsComposerTableV2::QgsComposerTableV2()
, mShowGrid( true )
, mGridStrokeWidth( 0.5 )
, mGridColor( Qt::black )
, mHorizontalGrid( true )
, mVerticalGrid( true )
, mBackgroundColor( Qt::white )
, mWrapBehaviour( TruncateText )
{
Expand Down
2 changes: 2 additions & 0 deletions src/core/dxf/qgsdxfexport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -373,6 +373,7 @@ QgsDxfExport::QgsDxfExport()
, mSymbolLayerCounter( 0 )
, mNextHandleId( DXF_HANDSEED )
, mBlockCounter( 0 )
, mFactor( 1 )
{
}

Expand All @@ -392,6 +393,7 @@ QgsDxfExport& QgsDxfExport::operator=( const QgsDxfExport & dxfExport )
mNextHandleId = 0;
mBlockCounter = 0;
mCrs = QgsCoordinateReferenceSystem();
mFactor = dxfExport.mFactor;
return *this;
}

Expand Down
1 change: 1 addition & 0 deletions src/core/qgsexpression.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5905,6 +5905,7 @@ QgsExpression::StaticFunction::StaticFunction( const QString& fnname, const QgsE
: Function( fnname, params, group, helpText, lazyEval, handlesNull )
, mFnc( fcn )
, mAliases( aliases )
, mUsesGeometry( false )
, mUsesGeometryFunc( usesGeometry )
, mReferencedColumnsFunc( referencedColumns )
{
Expand Down
1 change: 1 addition & 0 deletions src/core/qgsvectorfilewriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2289,6 +2289,7 @@ QgsVectorFileWriter::SaveVectorOptions::SaveVectorOptions()
, filterExtent( QgsRectangle() )
, overrideGeometryType( QgsWkbTypes::Unknown )
, forceMulti( false )
, includeZ( false )
, fieldValueConverter( nullptr )
{
}
Expand Down

0 comments on commit 6d8990b

Please sign in to comment.