Skip to content
Permalink
Browse files
Fix coverity uninitialized variable warnings
  • Loading branch information
nyalldawson committed Apr 26, 2016
1 parent d604a92 commit 5e3645ae248fa28a003be1f022de77579fd660c0
@@ -518,6 +518,7 @@ class CORE_EXPORT QgsExpression
bool handlesNull = false,
bool isContextual = false )
: mName( fnname )
, mParams( 0 )
, mParameterList( params )
, mUsesGeometry( usesGeometry )
, mGroup( group )
@@ -331,6 +331,7 @@ struct QgsProject::Imp

Imp()
: title()
, autoTransaction( false )
, dirty( false )
{ // top property node is the root
// "properties" that contains all plug-in
@@ -26,6 +26,7 @@ QgsRendererV2Widget* QgsNullSymbolRendererWidget::create( QgsVectorLayer* layer,

QgsNullSymbolRendererWidget::QgsNullSymbolRendererWidget( QgsVectorLayer* layer, QgsStyleV2* style, QgsFeatureRendererV2* renderer )
: QgsRendererV2Widget( layer, style )
, mRenderer( nullptr )
{
if ( renderer )
{
@@ -118,18 +118,6 @@ class QgsDb2ConnectionItem : public QgsDataCollectionItem

private:
QString mConnInfo;
QString mService;
QString mHost;
QString mDriver;
QString mPort;
QString mDatabase;
QString mUsername;
QString mPassword;
QString mAuthcfg;
int mEnvironment;
bool mUseGeometryColumns;
bool mUseEstimatedMetadata;
bool mAllowGeometrylessTables;

void readConnectionSettings();
};
@@ -23,6 +23,7 @@

QgsDb2GeometryColumns::QgsDb2GeometryColumns( const QSqlDatabase db )
: mDatabase( db )
, mEnvironment( ENV_LUW )
{
QgsDebugMsg( "constructing" );
}
@@ -160,4 +161,4 @@ bool QgsDb2GeometryColumns::populateLayerProperty( QgsDb2LayerProperty &layer )
}
layer.pkColumnName = layer.pkCols.size() > 0 ? layer.pkCols.at( 0 ) : QString::null;
return true;
}
}
@@ -32,6 +32,7 @@ int QgsDb2Provider::sConnectionId = 0;

QgsDb2Provider::QgsDb2Provider( QString uri )
: QgsVectorDataProvider( uri )
, mNumberFeatures( 0 )
, mEnvironment( ENV_LUW )
, mWkbType( QGis::WKBUnknown )
{
@@ -1754,4 +1755,4 @@ QGISEXTERN QgsVectorLayerImport::ImportError createEmptyLayer(
uri, fields, wkbType, srs, overwrite,
oldToNewAttrIdxMap, errorMessage, options
);
}
}

0 comments on commit 5e3645a

Please sign in to comment.