Skip to content

Commit

Permalink
indentation update
Browse files Browse the repository at this point in the history
  • Loading branch information
jef-n committed Nov 24, 2013
1 parent 843504e commit f665ddc
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion python/plugins/processing/tools/vector.py
Expand Up @@ -44,7 +44,7 @@ class Features:
def __init__(self, layer):
self.layer = layer
self.selection = False
self.iter = layer.getFeatures()
self.iter = layer.getFeatures()
if ProcessingConfig.getSetting(ProcessingConfig.USE_SELECTED):
selected = layer.selectedFeatures()
if len(selected) > 0:
Expand Down
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposer.cpp
Expand Up @@ -664,7 +664,7 @@ void QgsComposer::showItemOptions( QgsComposerItem* item )

void QgsComposer::on_mActionOptions_triggered()
{
mQgis->showOptionsDialog( this, QString("mOptionsPageComposer") );
mQgis->showOptionsDialog( this, QString( "mOptionsPageComposer" ) );
}

QgsMapCanvas *QgsComposer::mapCanvas( void )
Expand Down
2 changes: 1 addition & 1 deletion src/app/qgsclipboard.cpp
Expand Up @@ -147,7 +147,7 @@ QgsFeatureList QgsClipboard::copyOf( const QgsFields &fields )
{
QgsDebugMsg( "returning clipboard." );
if ( !mUseSystemClipboard )
return mFeatureClipboard;
return mFeatureClipboard;

QClipboard *cb = QApplication::clipboard();

Expand Down
8 changes: 4 additions & 4 deletions src/core/composer/qgsatlascomposition.cpp
Expand Up @@ -42,7 +42,7 @@ QgsAtlasComposition::QgsAtlasComposition( QgsComposition* composition ) :
QgsExpression::setSpecialColumn( "$numpages", QVariant(( int )1 ) );
QgsExpression::setSpecialColumn( "$numfeatures", QVariant(( int )0 ) );
QgsExpression::setSpecialColumn( "$atlasfeatureid", QVariant(( int )0 ) );
QgsExpression::setSpecialColumn( "$atlasgeometry", QVariant::fromValue(QgsGeometry()));
QgsExpression::setSpecialColumn( "$atlasgeometry", QVariant::fromValue( QgsGeometry() ) );
}

QgsAtlasComposition::~QgsAtlasComposition()
Expand All @@ -58,9 +58,9 @@ void QgsAtlasComposition::setCoverageLayer( QgsVectorLayer* layer )

// Grab the first feature so that user can use it to test the style in rules.
QgsFeature fet;
layer->getFeatures().nextFeature(fet);
layer->getFeatures().nextFeature( fet );
QgsExpression::setSpecialColumn( "$atlasfeatureid", fet.id() );
QgsExpression::setSpecialColumn( "$atlasgeometry", QVariant::fromValue(*fet.geometry()));
QgsExpression::setSpecialColumn( "$atlasgeometry", QVariant::fromValue( *fet.geometry() ) );
}

//
Expand Down Expand Up @@ -234,7 +234,7 @@ void QgsAtlasComposition::prepareForFeature( int featureI )
// retrieve the next feature, based on its id
mCoverageLayer->getFeatures( QgsFeatureRequest().setFilterFid( mFeatureIds[ featureI ] ) ).nextFeature( mCurrentFeature );
QgsExpression::setSpecialColumn( "$atlasfeatureid", mCurrentFeature.id() );
QgsExpression::setSpecialColumn( "$atlasgeometry", QVariant::fromValue(*mCurrentFeature.geometry()));
QgsExpression::setSpecialColumn( "$atlasgeometry", QVariant::fromValue( *mCurrentFeature.geometry() ) );

if ( !mSingleFile && mFilenamePattern.size() > 0 )
{
Expand Down
2 changes: 1 addition & 1 deletion src/core/qgsfeatureiterator.h
Expand Up @@ -39,7 +39,7 @@ class CORE_EXPORT QgsAbstractFeatureIterator
//! end of iterating: free the resources / lock
virtual bool close() = 0;

protected:
protected:
/**
* If you write a feature iterator for your provider, this is the method you
* need to implement!!
Expand Down
6 changes: 3 additions & 3 deletions src/core/qgsvectorlayercache.cpp
Expand Up @@ -76,9 +76,9 @@ void QgsVectorLayerCache::setFullCache( bool fullCache )
setCacheSize( mLayer->featureCount() + 100 );

// Initialize the cache...
QgsFeatureIterator it ( new QgsCachedFeatureWriterIterator( this, QgsFeatureRequest()
.setSubsetOfAttributes( mCachedAttributes )
.setFlags( !mCacheGeometry ? QgsFeatureRequest::NoGeometry : QgsFeatureRequest::Flags( 0 ) ) ) );
QgsFeatureIterator it( new QgsCachedFeatureWriterIterator( this, QgsFeatureRequest()
.setSubsetOfAttributes( mCachedAttributes )
.setFlags( !mCacheGeometry ? QgsFeatureRequest::NoGeometry : QgsFeatureRequest::Flags( 0 ) ) ) );

int i = 0;

Expand Down
2 changes: 1 addition & 1 deletion src/core/symbology-ng/qgsrendererv2registry.cpp
Expand Up @@ -88,7 +88,7 @@ QgsRendererV2AbstractMetadata* QgsRendererV2Registry::rendererMetadata( QString
return mRenderers.value( rendererName );
}

QgsRendererV2Metadata::~QgsRendererV2Metadata(){}
QgsRendererV2Metadata::~QgsRendererV2Metadata() {}

QStringList QgsRendererV2Registry::renderersList()
{
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/globe/globe_plugin_dialog.cpp
Expand Up @@ -38,7 +38,7 @@
#include <osg/DisplaySettings>

//constructor
QgsGlobePluginDialog::QgsGlobePluginDialog(QWidget* parent, GlobePlugin* globe, Qt::WFlags fl )
QgsGlobePluginDialog::QgsGlobePluginDialog( QWidget* parent, GlobePlugin* globe, Qt::WFlags fl )
: QDialog( parent, fl )
, mGlobe( globe )
{
Expand Down
2 changes: 1 addition & 1 deletion src/providers/postgres/qgspostgresprovider.cpp
Expand Up @@ -2409,7 +2409,7 @@ QgsRectangle QgsPostgresProvider::extent()
{
sql = QString( "SELECT %1(%2,%3,%4)" )
.arg( mConnectionRO->majorVersion() < 2 ? "estimated_extent" :
(mConnectionRO->majorVersion() == 2 && mConnectionRO->minorVersion() < 1 ? "st_estimated_extent" : "st_estimatedextent" ) )
( mConnectionRO->majorVersion() == 2 && mConnectionRO->minorVersion() < 1 ? "st_estimated_extent" : "st_estimatedextent" ) )
.arg( quotedValue( mSchemaName ) )
.arg( quotedValue( mTableName ) )
.arg( quotedValue( mGeometryColumn ) );
Expand Down

0 comments on commit f665ddc

Please sign in to comment.