Skip to content
Permalink
Browse files

Fix coverity uninitialized variable warnings

  • Loading branch information
nyalldawson committed Nov 7, 2016
1 parent 3c530a6 commit 6d8990b75d54667b1db3bac3d5578cfe084ca3e5
@@ -1181,6 +1181,7 @@ QgisApp::QgisApp()
, mBookMarksDockWidget( nullptr )
, mSnappingWidget( nullptr )
, mSnappingDialogContainer( nullptr )
, mSnappingDialogWidget( nullptr )
, mPluginManager( nullptr )
, mMapStylingDock( nullptr )
, mMapStyleWidget( nullptr )
@@ -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 );
@@ -93,6 +93,8 @@ QgsComposerTableV2::QgsComposerTableV2()
, mShowGrid( true )
, mGridStrokeWidth( 0.5 )
, mGridColor( Qt::black )
, mHorizontalGrid( true )
, mVerticalGrid( true )
, mBackgroundColor( Qt::white )
, mWrapBehaviour( TruncateText )
{
@@ -373,6 +373,7 @@ QgsDxfExport::QgsDxfExport()
, mSymbolLayerCounter( 0 )
, mNextHandleId( DXF_HANDSEED )
, mBlockCounter( 0 )
, mFactor( 1 )
{
}

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

@@ -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 )
{
@@ -2289,6 +2289,7 @@ QgsVectorFileWriter::SaveVectorOptions::SaveVectorOptions()
, filterExtent( QgsRectangle() )
, overrideGeometryType( QgsWkbTypes::Unknown )
, forceMulti( false )
, includeZ( false )
, fieldValueConverter( nullptr )
{
}

0 comments on commit 6d8990b

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