Skip to content
Permalink
Browse files

Astyle fixes

  • Loading branch information
ccrook authored and nyalldawson committed Jul 6, 2018
1 parent b4f2069 commit 9488d14935b4ac2d6a7a1cca947e4cb8d806a649
@@ -120,7 +120,7 @@ QgsDelimitedTextProvider::QgsDelimitedTextProvider( const QString &uri, const Pr
}
}

mDetectTypes=true;
mDetectTypes = true;
if ( url.hasQueryItem( QStringLiteral( "detectTypes" ) ) )
mDetectTypes = ! url.queryItemValue( QStringLiteral( "detectTypes" ) ).toLower().startsWith( 'n' );

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

if( ! mDetectTypes )
if ( ! mDetectTypes )
{
continue;
continue;
}

// Now test for still valid possible types for the field
@@ -626,15 +626,15 @@ void QgsDelimitedTextProvider::scanFile( bool buildIndexes )
typeName = QStringLiteral( "double" );
}
}
if( typeName == QStringLiteral( "integer" ) )
if ( typeName == QStringLiteral( "integer" ) )
{
fieldType = QVariant::Int;
}
else if ( typeName == QStringLiteral( "longlong" ) )
{
fieldType = QVariant::LongLong;
}
else if( typeName == QStringLiteral( "real" ) || typeName == QStringLiteral( "double" ) )
else if ( typeName == QStringLiteral( "real" ) || typeName == QStringLiteral( "double" ) )
{
typeName = QStringLiteral( "double" );
fieldType = QVariant::Double;
@@ -145,7 +145,7 @@ void QgsDelimitedTextSourceSelect::addButtonClicked()

QUrl url = mFile->url();

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

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

}

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

// store the settings
saveSettings();

0 comments on commit 9488d14

Please sign in to comment.
You can’t perform that action at this time.