Skip to content

Commit 93c46f2

Browse files
authoredMar 21, 2019
remove duplicate decl
1 parent 2161953 commit 93c46f2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed
 

‎src/app/qgshandlebadlayers.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ void QgsHandleBadLayers::apply()
370370
int idx = mLayerList->item( i, 0 )->data( Qt::UserRole ).toInt();
371371
QDomNode &node = const_cast<QDomNode &>( mLayers[ idx ] );
372372

373-
QString name = mLayerList->item( i, 0 )->text();
373+
const QString name = mLayerList->item( i, 0 )->text();
374374
QTableWidgetItem *item = mLayerList->item( i, 4 );
375375
QString datasource = item->text();
376376
const QString basepath = datasource.left( datasource.lastIndexOf('/') );
@@ -406,7 +406,6 @@ void QgsHandleBadLayers::apply()
406406
bool dataSourceChanged { false };
407407
const QString layerId { node.namedItem( QStringLiteral( "id" ) ).toElement().text() };
408408
const QString provider { node.namedItem( QStringLiteral( "provider" ) ).toElement().text() };
409-
const QString name { mLayerList->item( i, 0 )->text() };
410409

411410
// Try first to change the datasource of the existing layers, this will
412411
// maintain the current status (checked/unchecked) and group

0 commit comments

Comments
 (0)
Please sign in to comment.