Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed grass and browser coverity warnings
  • Loading branch information
blazek committed May 10, 2015
1 parent 536135a commit 6a312be
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/app/qgsbrowserdockwidget.cpp
Expand Up @@ -438,6 +438,7 @@ QgsBrowserDockWidget::QgsBrowserDockWidget( QString name, QWidget * parent ) :
, mModel( 0 )
, mProxyModel( 0 )
, mPropertiesWidgetEnabled( false )
, mPropertiesWidgetHeight( 0 )
{
setupUi( this );

Expand Down
2 changes: 1 addition & 1 deletion src/plugins/grass/qgsgrassbrowser.cpp
Expand Up @@ -452,7 +452,7 @@ void QgsGrassBrowser::deleteMap()
continue; // should not happen
}

QgsGrassObject::Type mapType;
QgsGrassObject::Type mapType = QgsGrassObject::None;
if ( type == QgsGrassModel::Raster )
mapType = QgsGrassObject::Raster;
else if ( type == QgsGrassModel::Vector )
Expand Down
2 changes: 1 addition & 1 deletion src/providers/grass/qgsgrass.h
Expand Up @@ -68,7 +68,7 @@ class GRASS_LIB_EXPORT QgsGrassObject
//! Element type
enum Type { None, Raster, Vector, Region };

QgsGrassObject() {}
QgsGrassObject() : mType( None ) {}
QgsGrassObject( const QString& gisdbase, const QString& location = QString::null,
const QString& mapset = QString::null, const QString& name = QString::null,
Type type = None );
Expand Down
3 changes: 2 additions & 1 deletion src/providers/grass/qgsgrassprovidermodule.cpp
Expand Up @@ -234,7 +234,8 @@ void QgsGrassVectorItem::deleteGrassObject()
QgsGrassVectorLayerItem::QgsGrassVectorLayerItem( QgsDataItem* parent, QgsGrassObject grassObject, QString layerName,
QString path, QString uri,
LayerType layerType, bool singleLayer )
: QgsGrassObjectItem( parent, grassObject, layerName, path, uri, layerType, "grass", singleLayer )
: QgsGrassObjectItem( parent, grassObject, layerName, path, uri, layerType, "grass" )
, mSingleLayer( singleLayer )
{
}

Expand Down

0 comments on commit 6a312be

Please sign in to comment.