Skip to content
Permalink
Browse files

fixed grass and browser coverity warnings

  • Loading branch information
blazek committed May 10, 2015
1 parent 536135a commit 6a312be586d6e3259d8a456750e8985771f26a03
@@ -438,6 +438,7 @@ QgsBrowserDockWidget::QgsBrowserDockWidget( QString name, QWidget * parent ) :
, mModel( 0 )
, mProxyModel( 0 )
, mPropertiesWidgetEnabled( false )
, mPropertiesWidgetHeight( 0 )
{
setupUi( this );

@@ -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 )
@@ -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 );
@@ -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 )
{
}

0 comments on commit 6a312be

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