Skip to content

Commit 9fd1aa5

Browse files
committedJun 1, 2020
[NFC] Pre- increment and decrement where possible
1 parent ad0a8d3 commit 9fd1aa5

File tree

162 files changed

+398
-397
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+398
-397
lines changed
 

‎include/swift/Remote/Failure.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ class Failure {
255255
result.append(text, next - text);
256256

257257
// Skip the '%'.
258-
next++;
258+
++next;
259259

260260
// Do something based on the character after '%'.
261261
char c = *next++;

‎include/swift/Runtime/Concurrent.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ template <class ElemTy> struct ConcurrentReadableArray {
434434
}
435435

436436
void deallocate() {
437-
for (size_t i = 0; i < Count; i++) {
437+
for (size_t i = 0; i < Count; ++i) {
438438
data()[i].~ElemTy();
439439
}
440440
free(this);

0 commit comments

Comments
 (0)