mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
Replaced deprecated Q_FOREACH with for loop
This commit is contained in:
parent
98621d7cd0
commit
40abe1430f
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user