Skip to content

Commit 69af2fa

Browse files
committedDec 29, 2016
Replace more splitted by split
1 parent a56f928 commit 69af2fa

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed
 

‎src/core/qgsvectorlayereditutils.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ int QgsVectorLayerEditUtils::splitFeatures( const QList<QgsPoint>& splitLine, bo
301301
QgsRectangle bBox; //bounding box of the split line
302302
int returnCode = 0;
303303
int splitFunctionReturn; //return code of QgsGeometry::splitGeometry
304-
int numberOfSplittedFeatures = 0;
304+
int numberOfSplitFeatures = 0;
305305

306306
QgsFeatureIterator features;
307307
const QgsFeatureIds selectedIds = L->selectedFeatureIds();
@@ -384,15 +384,15 @@ int QgsVectorLayerEditUtils::splitFeatures( const QList<QgsPoint>& splitLine, bo
384384
addTopologicalPoints( *topol_it );
385385
}
386386
}
387-
++numberOfSplittedFeatures;
387+
++numberOfSplitFeatures;
388388
}
389389
else if ( splitFunctionReturn > 1 ) //1 means no split but also no error
390390
{
391391
returnCode = splitFunctionReturn;
392392
}
393393
}
394394

395-
if ( numberOfSplittedFeatures == 0 && !selectedIds.isEmpty() )
395+
if ( numberOfSplitFeatures == 0 && !selectedIds.isEmpty() )
396396
{
397397
//There is a selection but no feature has been split.
398398
//Maybe user forgot that only the selected features are split
@@ -411,7 +411,7 @@ int QgsVectorLayerEditUtils::splitParts( const QList<QgsPoint>& splitLine, bool
411411
QgsRectangle bBox; //bounding box of the split line
412412
int returnCode = 0;
413413
int splitFunctionReturn; //return code of QgsGeometry::splitGeometry
414-
int numberOfSplittedParts = 0;
414+
int numberOfSplitParts = 0;
415415

416416
QgsFeatureIterator fit;
417417

@@ -519,15 +519,15 @@ int QgsVectorLayerEditUtils::splitParts( const QList<QgsPoint>& splitLine, bool
519519
addTopologicalPoints( *topol_it );
520520
}
521521
}
522-
++numberOfSplittedParts;
522+
++numberOfSplitParts;
523523
}
524524
else if ( splitFunctionReturn > 1 ) //1 means no split but also no error
525525
{
526526
returnCode = splitFunctionReturn;
527527
}
528528
}
529529

530-
if ( numberOfSplittedParts == 0 && L->selectedFeatureCount() > 0 && returnCode == 0 )
530+
if ( numberOfSplitParts == 0 && L->selectedFeatureCount() > 0 && returnCode == 0 )
531531
{
532532
//There is a selection but no feature has been split.
533533
//Maybe user forgot that only the selected features are split

‎tests/src/python/test_qgsdelimitedtextprovider.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,14 +88,14 @@ def toString(self):
8888

8989

9090
def normalize_query_items_order(s):
91-
splitted_url = s.split('?')
92-
urlstr = splitted_url[0]
93-
if len(splitted_url) == 2:
94-
items_list = splitted_url[1].split('&')
91+
split_url = s.split('?')
92+
urlstr = split_url[0]
93+
if len(split_url) == 2:
94+
items_list = split_url[1].split('&')
9595
items_map = {}
9696
for item in items_list:
97-
splitted_item = item.split('=')
98-
items_map[splitted_item[0]] = splitted_item[1]
97+
split_item = item.split('=')
98+
items_map[split_item[0]] = split_item[1]
9999
first_arg = True
100100
for k in sorted(items_map.keys()):
101101
if first_arg:

0 commit comments

Comments
 (0)
Please sign in to comment.