Skip to content
Permalink
Browse files

Replaced deprecated Q_FOREACH with for loop

  • Loading branch information
MieWinstrup authored and nyalldawson committed Apr 5, 2018
1 parent 98621d7 commit 40abe1430f0e8befc896d204f0b1a0da61ace544
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/gui/layertree/qgslayertreeviewdefaultactions.cpp
@@ -363,7 +363,8 @@ void QgsLayerTreeViewDefaultActions::moveToTop()
{
QMap <QgsLayerTreeGroup *, int> groupInsertIdx;
int insertIdx;
Q_FOREACH ( QgsLayerTreeNode *n, mView->selectedNodes() )
const QList< QgsLayerTreeNode * > selectedNodes = mView->selectedNodes();
for ( QgsLayerTreeNode *n : selectedNodes )
{
QgsLayerTreeGroup *parentGroup = qobject_cast<QgsLayerTreeGroup *>( n->parent() );
QgsLayerTreeNode *clonedNode = n->clone();

0 comments on commit 40abe14

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