diff --git a/src/core/layertreemodel.cpp b/src/core/layertreemodel.cpp index dc259c24d9..f4a8ac8024 100644 --- a/src/core/layertreemodel.cpp +++ b/src/core/layertreemodel.cpp @@ -198,7 +198,7 @@ void FlatLayerTreeModelBase::insertInMap( const QModelIndex &parent, int first, QMap treeLevelMap; mIndexMap.clear(); - const QList keys = mRowMap.keys(); + const QList keys = mRowMap.keys(); for ( const auto &index : keys ) { int row = mRowMap[index]; @@ -291,7 +291,7 @@ void FlatLayerTreeModelBase::removeFromMap( const QModelIndex &parent, int first QMap treeLevelMap; mIndexMap.clear(); - const QList keys = mRowMap.keys(); + const QList keys = mRowMap.keys(); for ( const auto &index : keys ) { int row = mRowMap[index]; diff --git a/src/core/layertreemodel.h b/src/core/layertreemodel.h index ec60fd3ab6..5cb115b241 100644 --- a/src/core/layertreemodel.h +++ b/src/core/layertreemodel.h @@ -89,10 +89,10 @@ class FlatLayerTreeModelBase : public QAbstractProxyModel void updateTemporalState(); void adjustTemporalStateFromAddedLayers( const QList &layers ); - QMap mRowMap; - QMap mIndexMap; + QMap mRowMap; + QMap mIndexMap; QMap mTreeLevelMap; - QList mCollapsedItems; + QList mCollapsedItems; QgsLayerTreeModel *mLayerTreeModel = nullptr; QString mMapTheme;