Skip to content

Commit

Permalink
Whitespace fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
manisandro committed Jan 19, 2016
1 parent 9b7afc8 commit 47aeb59
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions src/plugins/geometry_checker/ui/qgsgeometrycheckersetuptab.cpp
Expand Up @@ -64,7 +64,7 @@ QgsGeometryCheckerSetupTab::QgsGeometryCheckerSetupTab( QgisInterface* iface , Q

updateLayers();

Q_FOREACH( const QgsGeometryCheckFactory* factory, QgsGeometryCheckFactoryRegistry::getCheckFactories() )
Q_FOREACH ( const QgsGeometryCheckFactory* factory, QgsGeometryCheckFactoryRegistry::getCheckFactories() )
{
factory->restorePrevious( ui );
}
Expand All @@ -85,7 +85,7 @@ void QgsGeometryCheckerSetupTab::updateLayers()
QgsMapLayer* currentLayer = isVisible() ? 0 : mIface->mapCanvas()->currentLayer();
int currIdx = -1;
int idx = 0;
Q_FOREACH( QgsMapLayer* layer, QgsMapLayerRegistry::instance()->mapLayers() )
Q_FOREACH ( QgsMapLayer* layer, QgsMapLayerRegistry::instance()->mapLayers() )
{
QgsDebugMsg( QString( "Adding layer, have %1 in list" ).arg( ui.comboBoxInputLayer->count() ) );
if ( qobject_cast<QgsVectorLayer*>( layer ) )
Expand Down Expand Up @@ -121,7 +121,7 @@ void QgsGeometryCheckerSetupTab::validateInput()
int nApplicable = 0;
if ( layer )
{
Q_FOREACH( const QgsGeometryCheckFactory* factory, QgsGeometryCheckFactoryRegistry::getCheckFactories() )
Q_FOREACH ( const QgsGeometryCheckFactory* factory, QgsGeometryCheckFactoryRegistry::getCheckFactories() )
{
nApplicable += factory->checkApplicability( ui, layer->geometryType() );
}
Expand All @@ -134,7 +134,7 @@ void QgsGeometryCheckerSetupTab::selectOutputFile()
{
QString filterString = QgsVectorFileWriter::filterForDriver( "ESRI Shapefile" );
QMap<QString, QString> filterFormatMap = QgsVectorFileWriter::supportedFiltersAndFormats();
Q_FOREACH( const QString& filter, filterFormatMap.keys() )
Q_FOREACH ( const QString& filter, filterFormatMap.keys() )
{
QString driverName = filterFormatMap.value( filter );
if ( driverName != "ESRI Shapefile" ) // Default entry, first in list (see above)
Expand Down Expand Up @@ -205,7 +205,7 @@ void QgsGeometryCheckerSetupTab::runChecks()

// Remove existing layer with same uri
QStringList toRemove;
Q_FOREACH( QgsMapLayer* maplayer, QgsMapLayerRegistry::instance()->mapLayers() )
Q_FOREACH ( QgsMapLayer* maplayer, QgsMapLayerRegistry::instance()->mapLayers() )
{
if ( dynamic_cast<QgsVectorLayer*>( maplayer ) &&
static_cast<QgsVectorLayer*>( maplayer )->dataProvider()->dataSourceUri().startsWith( filename ) )
Expand Down Expand Up @@ -281,7 +281,7 @@ void QgsGeometryCheckerSetupTab::runChecks()

QList<QgsGeometryCheck*> checks;
double mapToLayer = 1. / mIface->mapCanvas()->mapSettings().layerToMapUnits( layer );
Q_FOREACH( const QgsGeometryCheckFactory* factory, QgsGeometryCheckFactoryRegistry::getCheckFactories() )
Q_FOREACH ( const QgsGeometryCheckFactory* factory, QgsGeometryCheckFactoryRegistry::getCheckFactories() )
{
QgsGeometryCheck* check = factory->createInstance( featurePool, ui, mapToLayer );
if ( check )
Expand Down Expand Up @@ -339,5 +339,5 @@ void QgsGeometryCheckerSetupTab::showCancelFeedback()
mAbortButton->setEnabled( false );
ui.labelStatus->setText( tr( "<b>Waiting for running checks to finish...</b>" ) );
ui.labelStatus->show();
ui.progressBar->hide();
ui.progressBar->hide() ;
}
8 changes: 4 additions & 4 deletions src/plugins/geometry_snapper/qgsgeometrysnapperdialog.cpp
Expand Up @@ -74,7 +74,7 @@ void QgsGeometrySnapperDialog::updateLayers()
int curInputIdx = -1;
int curReferenceIdx = -1;
int idx = 0;
Q_FOREACH( QgsMapLayer* layer, QgsMapLayerRegistry::instance()->mapLayers() )
Q_FOREACH ( QgsMapLayer* layer, QgsMapLayerRegistry::instance()->mapLayers() )
{
if ( qobject_cast<QgsVectorLayer*>( layer ) )
{
Expand Down Expand Up @@ -145,7 +145,7 @@ void QgsGeometrySnapperDialog::selectOutputFile()
{
QString filterString = QgsVectorFileWriter::filterForDriver( "ESRI Shapefile" );
QMap<QString, QString> filterFormatMap = QgsVectorFileWriter::supportedFiltersAndFormats();
Q_FOREACH( const QString& filter, filterFormatMap.keys() )
Q_FOREACH ( const QString& filter, filterFormatMap.keys() )
{
QString driverName = filterFormatMap.value( filter );
if ( driverName != "ESRI Shapefile" ) // Default entry, first in list (see above)
Expand Down Expand Up @@ -207,7 +207,7 @@ void QgsGeometrySnapperDialog::run()

// Remove existing layer with same uri
QStringList toRemove;
Q_FOREACH( QgsMapLayer* maplayer, QgsMapLayerRegistry::instance()->mapLayers() )
Q_FOREACH ( QgsMapLayer* maplayer, QgsMapLayerRegistry::instance()->mapLayers() )
{
if ( dynamic_cast<QgsVectorLayer*>( maplayer ) &&
static_cast<QgsVectorLayer*>( maplayer )->dataProvider()->dataSourceUri().startsWith( filename ) )
Expand Down Expand Up @@ -314,6 +314,6 @@ void QgsGeometrySnapperDialog::run()
{
QMessageBox::warning( this, tr( "Errors occurred" ), tr( "<p>The following errors occured:</p><ul><li>%1</li></ul>" ).arg( snapper.getErrors().join( "</li><li>" ) ) );
}
hide();
hide() ;
}

0 comments on commit 47aeb59

Please sign in to comment.