Skip to content

Commit 52736ce

Browse files
authored
indent
1 parent 5bf0dcb commit 52736ce

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/app/qgshandlebadlayers.cpp

+5-5
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ QgsHandleBadLayers::QgsHandleBadLayers( const QList<QDomNode> &layers )
117117
QString provider = node.namedItem( QStringLiteral( "provider" ) ).toElement().text();
118118
QString vectorProvider = type == QLatin1String( "vector" ) ? provider : tr( "none" );
119119
bool providerFileBased = ( QgsProviderRegistry::instance()->providerCapabilities( provider ) & QgsDataProvider::File ) != 0;
120-
const QString basepath = datasource.left( datasource.lastIndexOf('/') );
120+
const QString basepath = datasource.left( datasource.lastIndexOf( '/' ) );
121121
mFileBase[name].append( basepath );
122122

123123
QgsDebugMsg( QStringLiteral( "name=%1 type=%2 provider=%3 datasource='%4'" )
@@ -375,10 +375,10 @@ void QgsHandleBadLayers::apply()
375375
const QString name = mLayerList->item( i, 0 )->text();
376376
QTableWidgetItem *item = mLayerList->item( i, 4 );
377377
QString datasource = item->text();
378-
const QString basepath = datasource.left( datasource.lastIndexOf('/') );
378+
const QString basepath = datasource.left( datasource.lastIndexOf( '/' ) );
379379
bool changed = false;
380380

381-
if ( mFileBase[ name ].size() == 1 )
381+
if ( mFileBase[ name ].size() == 1 )
382382
{
383383
if ( mFileBase[ name ][0] != basepath && !baseChange.contains( mFileBase[ name ][0] ) )
384384
{
@@ -439,7 +439,7 @@ void QgsHandleBadLayers::apply()
439439
else
440440
{
441441
item->setForeground( QBrush( Qt::red ) );
442-
if ( mFileBase[ name ].size() == 1 )
442+
if ( mFileBase[ name ].size() == 1 )
443443
mFileBase[ name ][0] = basepath ;
444444
else if ( mFileBase[ name ].size() > 1 )
445445
mFileBase[ name ].append( basepath );
@@ -496,4 +496,4 @@ void QgsHandleBadLayers::accept()
496496
int QgsHandleBadLayers::layerCount()
497497
{
498498
return mLayerList->rowCount();
499-
}
499+
}

0 commit comments

Comments
 (0)