@@ -160,7 +160,7 @@ public class NSIndexSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding
160160 guard idx < NSNotFound else {
161161 return nil
162162 }
163- result++
163+ result += 1
164164 }
165165
166166 if let rangeIndex = _indexOfRangeAfterOrContainingIndex ( result) {
@@ -173,7 +173,7 @@ public class NSIndexSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding
173173 guard idx > 0 else {
174174 return nil
175175 }
176- result--
176+ result -= 1
177177 }
178178
179179 if let rangeIndex = _indexOfRangeBeforeOrContainingIndex ( result) {
@@ -229,12 +229,13 @@ public class NSIndexSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding
229229 }
230230
231231 while idx <= maxIndex && counter < bufferSize && offset < currentRange. length {
232- indexBuffer. advancedBy ( counter++ ) . memory = idx
233- ++ idx
234- ++ offset
232+ indexBuffer. advancedBy ( counter) . memory = idx
233+ counter += 1
234+ idx += 1
235+ offset += 1
235236 }
236237 if offset >= currentRange. length {
237- ++ rangeIndex
238+ rangeIndex += 1
238239 offset = 0
239240 }
240241 }
@@ -266,7 +267,7 @@ public class NSIndexSet : NSObject, NSCopying, NSMutableCopying, NSSecureCoding
266267 return range. length
267268 }
268269 result = NSMaxRange ( firstRange) - range. location
269- rangeIndex++
270+ rangeIndex += 1
270271 }
271272
272273 for curRange in _ranges. suffixFrom ( rangeIndex) {
@@ -518,7 +519,7 @@ public class NSMutableIndexSet : NSIndexSet {
518519 // overlaps
519520 if curEnd < nextEnd {
520521 self . _replaceRangeAtIndex ( rangeIndex, withRange: NSMakeRange ( nextEnd - curRange. location, curRange. length) )
521- rangeIndex++
522+ rangeIndex += 1
522523 }
523524 self . _replaceRangeAtIndex ( rangeIndex + 1 , withRange: nil )
524525 } else {
@@ -560,7 +561,7 @@ public class NSMutableIndexSet : NSIndexSet {
560561 // Proceed to merging
561562 break
562563 }
563- rangeIndex++
564+ rangeIndex += 1
564565 }
565566 if let r = replacedRangeIndex {
566567 _mergeOverlappingRangesStartingAtIndex ( r)
@@ -602,7 +603,7 @@ public class NSMutableIndexSet : NSIndexSet {
602603 } else if range. location > curRange. location && range. location < curEnd && removeEnd >= curEnd {
603604 _replaceRangeAtIndex ( rangeIndex, withRange: NSMakeRange ( curRange. location, range. location - curRange. location) )
604605 }
605- rangeIndex++
606+ rangeIndex += 1
606607 }
607608
608609 }
0 commit comments