Skip to content

Commit 907ce69

Browse files
committed
indentation update
1 parent ebd9726 commit 907ce69

17 files changed

+42
-42
lines changed

python/plugins/processing/algs/grass/GrassAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def help(self):
8282

8383
def getParameterDescriptions(self):
8484
descs = {}
85-
_, helpfile = self.help()
85+
_, helpfile = self.help()
8686
try:
8787
infile = open(helpfile)
8888
lines = infile.readlines()

python/plugins/processing/algs/grass7/Grass7Algorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def help(self):
8383

8484
def getParameterDescriptions(self):
8585
descs = {}
86-
_, helpfile = self.help()
86+
_, helpfile = self.help()
8787
try:
8888
infile = open(helpfile)
8989
lines = infile.readlines()

python/plugins/processing/algs/otb/OTBAlgorithm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def defineCharacteristicsFromFile(self):
150150
if line.startswith("*Parameter"):
151151
param = ParameterFactory.getFromString(line[1:])
152152
param.isAdvanced = True
153-
else:
153+
else:
154154
param = getParameterFromString(line)
155155
# Hack for initializing the elevation parameters from Processing configuration
156156
if param.name == "-elev.dem.path" or param.name == "-elev.dem" or "elev.dem" in param.name:

python/plugins/processing/algs/qgis/scripts/Fill_holes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
l = 0
1717

1818
writer = processing.VectorWriter(Results, None, polyPrder.fields(),
19-
QGis.WKBMultiPolygon, polyPrder.crs())
19+
QGis.WKBMultiPolygon, polyPrder.crs())
2020

2121

2222
resgeom = QgsGeometry()

python/plugins/processing/algs/qgis/scripts/Frequency_analysis.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
inputFields = layer.pendingFields()
1212
fieldIdxs = []
1313
fields = Fields.split(',')
14-
for f in fields:
15-
idx = inputFields.indexFromName(f)
14+
for f in fields:
15+
idx = inputFields.indexFromName(f)
1616
if idx == -1:
1717
raise GeoAlgorithmExecutionException('Field not found:' + f)
1818
fieldIdxs.append(idx)

src/app/qgsfieldsproperties.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -605,14 +605,14 @@ void QgsFieldsProperties::attributesListCellChanged( int row, int column )
605605
QTableWidgetItem *aliasItem = mFieldsList->item( row, column );
606606
if ( aliasItem )
607607
{
608-
if ( !aliasItem->text().trimmed().isEmpty() )
609-
{
610-
mLayer->addAttributeAlias( idx, aliasItem->text() );
611-
}
612-
else
613-
{
614-
mLayer->remAttributeAlias(idx);
615-
}
608+
if ( !aliasItem->text().trimmed().isEmpty() )
609+
{
610+
mLayer->addAttributeAlias( idx, aliasItem->text() );
611+
}
612+
else
613+
{
614+
mLayer->remAttributeAlias( idx );
615+
}
616616
}
617617
}
618618
}

src/core/composer/qgscomposermapoverview.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ void QgsComposerMapOverview::setFrameMap( const int mapId )
218218

219219
void QgsComposerMapOverview::connectSignals()
220220
{
221-
if ( mFrameMapId != -1 && mComposerMap->composition() )
221+
if ( mFrameMapId != -1 && mComposerMap->composition() )
222+
{
223+
const QgsComposerMap* map = mComposerMap->composition()->getComposerMapById( mFrameMapId );
224+
if ( map )
222225
{
223-
const QgsComposerMap* map = mComposerMap->composition()->getComposerMapById( mFrameMapId );
224-
if ( map )
225-
{
226-
QObject::connect( map, SIGNAL( extentChanged() ), this, SLOT( overviewExtentChanged() ) );
227-
}
226+
QObject::connect( map, SIGNAL( extentChanged() ), this, SLOT( overviewExtentChanged() ) );
228227
}
228+
}
229229
}
230230

231231
void QgsComposerMapOverview::setFrameSymbol( QgsFillSymbolV2 *symbol )

src/core/composer/qgscomposermapoverview.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class CORE_EXPORT QgsComposerMapOverview : public QObject
9696
*/
9797
void connectSignals();
9898

99-
public slots:
99+
public slots:
100100

101101
void overviewExtentChanged();
102102

src/core/qgsattributeaction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ void QgsAttributeAction::removeAction( int index )
5353
}
5454
}
5555

56-
void QgsAttributeAction::doAction(int index, const QgsFeature& feat, int defaultValueIndex )
56+
void QgsAttributeAction::doAction( int index, const QgsFeature& feat, int defaultValueIndex )
5757
{
5858
QMap<QString, QVariant> substitutionMap;
5959
if ( defaultValueIndex >= 0 )

src/core/qgsfield.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bool QgsFields::append( const QgsField& field, FieldOrigin origin, int originInd
150150
return true;
151151
}
152152

153-
bool QgsFields::appendExpressionField(const QgsField& field, int originIndex)
153+
bool QgsFields::appendExpressionField( const QgsField& field, int originIndex )
154154
{
155155
if ( mNameToIndex.contains( field.name() ) )
156156
return false;

0 commit comments

Comments
 (0)