Skip to content
Permalink
Browse files
More clazy warning fixes
  • Loading branch information
nyalldawson committed Jun 1, 2021
1 parent 1dc93df commit ea14553759fb1004bbd3362648510e516381f9b9
Showing with 11 additions and 11 deletions.
  1. +6 −6 src/providers/grass/qgsgrassprovidermodule.cpp
  2. +5 −5 src/providers/grass/qgsgrassprovidermodule.h
@@ -969,7 +969,7 @@ void QgsGrassMapsetItem::childrenCreated()

if ( mRefreshLater )
{
QgsDebugMsg( "directory changed during createChidren() -> refresh() again" );
QgsDebugMsg( QStringLiteral( "directory changed during createChidren() -> refresh() again" ) );
mRefreshLater = false;
setState( Qgis::BrowserItemState::Populated );
refresh();
@@ -982,7 +982,7 @@ void QgsGrassMapsetItem::childrenCreated()

//------------------------ QgsGrassObjectItem ----------------------------------

QgsGrassObjectItem::QgsGrassObjectItem( QgsDataItem *parent, QgsGrassObject grassObject,
QgsGrassObjectItem::QgsGrassObjectItem( QgsDataItem *parent, const QgsGrassObject &grassObject,
const QString &name, const QString &path, const QString &uri,
Qgis::BrowserLayerType layerType, const QString &providerKey )
: QgsLayerItem( parent, name, path, uri, layerType, providerKey )
@@ -1002,7 +1002,7 @@ bool QgsGrassObjectItem::equal( const QgsDataItem *other )

//----------------------- QgsGrassVectorItem ------------------------------

QgsGrassVectorItem::QgsGrassVectorItem( QgsDataItem *parent, QgsGrassObject grassObject, const QString &path, const QString &labelName, bool valid )
QgsGrassVectorItem::QgsGrassVectorItem( QgsDataItem *parent, const QgsGrassObject &grassObject, const QString &path, const QString &labelName, bool valid )
: QgsDataCollectionItem( parent, labelName.isEmpty() ? grassObject.name() : labelName, path )
, QgsGrassObjectItemBase( grassObject )
, mValid( valid )
@@ -1068,7 +1068,7 @@ bool QgsGrassVectorItem::equal( const QgsDataItem *other )

//----------------------- QgsGrassVectorLayerItem ------------------------------

QgsGrassVectorLayerItem::QgsGrassVectorLayerItem( QgsDataItem *parent, QgsGrassObject grassObject, const QString &layerName,
QgsGrassVectorLayerItem::QgsGrassVectorLayerItem( QgsDataItem *parent, const QgsGrassObject &grassObject, const QString &layerName,
const QString &path, const QString &uri,
Qgis::BrowserLayerType layerType, bool singleLayer )
: QgsGrassObjectItem( parent, grassObject, layerName, path, uri, layerType, QStringLiteral( "grass" ) )
@@ -1097,7 +1097,7 @@ bool QgsGrassVectorLayerItem::equal( const QgsDataItem *other )

//----------------------- QgsGrassRasterItem ------------------------------

QgsGrassRasterItem::QgsGrassRasterItem( QgsDataItem *parent, QgsGrassObject grassObject,
QgsGrassRasterItem::QgsGrassRasterItem( QgsDataItem *parent, const QgsGrassObject &grassObject,
const QString &path, const QString &uri, bool isExternal )
: QgsGrassObjectItem( parent, grassObject, grassObject.name(), path, uri, Qgis::BrowserLayerType::Raster, QStringLiteral( "grassraster" ) )
, mExternal( isExternal )
@@ -1121,7 +1121,7 @@ bool QgsGrassRasterItem::equal( const QgsDataItem *other )

//----------------------- QgsGrassGroupItem ------------------------------

QgsGrassGroupItem::QgsGrassGroupItem( QgsDataItem *parent, QgsGrassObject grassObject,
QgsGrassGroupItem::QgsGrassGroupItem( QgsDataItem *parent, const QgsGrassObject &grassObject,
const QString &path, const QString &uri )
: QgsGrassObjectItem( parent, grassObject, grassObject.name(), path, uri, Qgis::BrowserLayerType::Raster, QStringLiteral( "grassraster" ) )
{
@@ -140,7 +140,7 @@ class QgsGrassObjectItem : public QgsLayerItem, public QgsGrassObjectItemBase
{
Q_OBJECT
public:
QgsGrassObjectItem( QgsDataItem *parent, QgsGrassObject grassObject,
QgsGrassObjectItem( QgsDataItem *parent, const QgsGrassObject &grassObject,
const QString &name, const QString &path, const QString &uri,
Qgis::BrowserLayerType layerType, const QString &providerKey );

@@ -162,7 +162,7 @@ class QgsGrassVectorItem : public QgsDataCollectionItem, public QgsGrassObjectIt
Q_OBJECT
public:
// labelName - name to be displayed in tree if it should be different from grassObject.name() (e.g. invalid vector)
QgsGrassVectorItem( QgsDataItem *parent, QgsGrassObject grassObject, const QString &path, const QString &labelName = QString(), bool valid = true );
QgsGrassVectorItem( QgsDataItem *parent, const QgsGrassObject &grassObject, const QString &path, const QString &labelName = QString(), bool valid = true );
~QgsGrassVectorItem() override;

#ifdef HAVE_GUI
@@ -186,7 +186,7 @@ class QgsGrassVectorLayerItem : public QgsGrassObjectItem
{
Q_OBJECT
public:
QgsGrassVectorLayerItem( QgsDataItem *parent, QgsGrassObject vector, const QString &layerName,
QgsGrassVectorLayerItem( QgsDataItem *parent, const QgsGrassObject &vector, const QString &layerName,
const QString &path, const QString &uri, Qgis::BrowserLayerType layerType, bool singleLayer );

QString layerName() const override;
@@ -201,7 +201,7 @@ class QgsGrassRasterItem : public QgsGrassObjectItem
{
Q_OBJECT
public:
QgsGrassRasterItem( QgsDataItem *parent, QgsGrassObject grassObject,
QgsGrassRasterItem( QgsDataItem *parent, const QgsGrassObject &grassObject,
const QString &path, const QString &uri, bool isExternal );

QIcon icon() override;
@@ -217,7 +217,7 @@ class QgsGrassGroupItem : public QgsGrassObjectItem
{
Q_OBJECT
public:
QgsGrassGroupItem( QgsDataItem *parent, QgsGrassObject grassObject,
QgsGrassGroupItem( QgsDataItem *parent, const QgsGrassObject &grassObject,
const QString &path, const QString &uril );

QIcon icon() override;

0 comments on commit ea14553

Please sign in to comment.