Skip to content

Commit

Permalink
remove duplicate decl
Browse files Browse the repository at this point in the history
  • Loading branch information
roya0045 committed Mar 21, 2019
1 parent 2161953 commit 93c46f2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/app/qgshandlebadlayers.cpp
Expand Up @@ -370,7 +370,7 @@ void QgsHandleBadLayers::apply()
int idx = mLayerList->item( i, 0 )->data( Qt::UserRole ).toInt();
QDomNode &node = const_cast<QDomNode &>( mLayers[ idx ] );

QString name = mLayerList->item( i, 0 )->text();
const QString name = mLayerList->item( i, 0 )->text();
QTableWidgetItem *item = mLayerList->item( i, 4 );
QString datasource = item->text();
const QString basepath = datasource.left( datasource.lastIndexOf('/') );
Expand Down Expand Up @@ -406,7 +406,6 @@ void QgsHandleBadLayers::apply()
bool dataSourceChanged { false };
const QString layerId { node.namedItem( QStringLiteral( "id" ) ).toElement().text() };
const QString provider { node.namedItem( QStringLiteral( "provider" ) ).toElement().text() };
const QString name { mLayerList->item( i, 0 )->text() };

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

0 comments on commit 93c46f2

Please sign in to comment.