Skip to content

Commit 9488d14

Browse files
ccrooknyalldawson
authored andcommitted
Astyle fixes
1 parent b4f2069 commit 9488d14

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

src/providers/delimitedtext/qgsdelimitedtextprovider.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider( const QString &uri, const Pr
120120
}
121121
}
122122

123-
mDetectTypes=true;
123+
mDetectTypes = true;
124124
if ( url.hasQueryItem( QStringLiteral( "detectTypes" ) ) )
125125
mDetectTypes = ! url.queryItemValue( QStringLiteral( "detectTypes" ) ).toLower().startsWith( 'n' );
126126

@@ -557,9 +557,9 @@ void QgsDelimitedTextProvider::scanFile( bool buildIndexes )
557557
couldBeDouble[i] = true;
558558
}
559559

560-
if( ! mDetectTypes )
560+
if ( ! mDetectTypes )
561561
{
562-
continue;
562+
continue;
563563
}
564564

565565
// Now test for still valid possible types for the field
@@ -626,15 +626,15 @@ void QgsDelimitedTextProvider::scanFile( bool buildIndexes )
626626
typeName = QStringLiteral( "double" );
627627
}
628628
}
629-
if( typeName == QStringLiteral( "integer" ) )
629+
if ( typeName == QStringLiteral( "integer" ) )
630630
{
631631
fieldType = QVariant::Int;
632632
}
633633
else if ( typeName == QStringLiteral( "longlong" ) )
634634
{
635635
fieldType = QVariant::LongLong;
636636
}
637-
else if( typeName == QStringLiteral( "real" ) || typeName == QStringLiteral( "double" ) )
637+
else if ( typeName == QStringLiteral( "real" ) || typeName == QStringLiteral( "double" ) )
638638
{
639639
typeName = QStringLiteral( "double" );
640640
fieldType = QVariant::Double;

src/providers/delimitedtext/qgsdelimitedtextsourceselect.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ void QgsDelimitedTextSourceSelect::addButtonClicked()
145145

146146
QUrl url = mFile->url();
147147

148-
url.addQueryItem( QStringLiteral( "detectTypes" ), cbxDetectTypes->isChecked() ? QStringLiteral("yes") : QStringLiteral("no") );
148+
url.addQueryItem( QStringLiteral( "detectTypes" ), cbxDetectTypes->isChecked() ? QStringLiteral( "yes" ) : QStringLiteral( "no" ) );
149149

150150
if ( cbxPointIsComma->isChecked() )
151151
{
@@ -194,9 +194,9 @@ void QgsDelimitedTextSourceSelect::addButtonClicked()
194194

195195
}
196196

197-
if ( ! geomTypeNone->isChecked() ) url.addQueryItem( QStringLiteral( "spatialIndex" ), cbxSpatialIndex->isChecked() ? QStringLiteral("yes") : QStringLiteral("no") );
198-
url.addQueryItem( QStringLiteral( "subsetIndex" ), cbxSubsetIndex->isChecked() ? QStringLiteral("yes") : QStringLiteral("no") );
199-
url.addQueryItem( QStringLiteral( "watchFile" ), cbxWatchFile->isChecked() ? QStringLiteral("yes") : QStringLiteral("no") );
197+
if ( ! geomTypeNone->isChecked() ) url.addQueryItem( QStringLiteral( "spatialIndex" ), cbxSpatialIndex->isChecked() ? QStringLiteral( "yes" ) : QStringLiteral( "no" ) );
198+
url.addQueryItem( QStringLiteral( "subsetIndex" ), cbxSubsetIndex->isChecked() ? QStringLiteral( "yes" ) : QStringLiteral( "no" ) );
199+
url.addQueryItem( QStringLiteral( "watchFile" ), cbxWatchFile->isChecked() ? QStringLiteral( "yes" ) : QStringLiteral( "no" ) );
200200

201201
// store the settings
202202
saveSettings();

0 commit comments

Comments
 (0)