Skip to content

Commit fbafab4

Browse files
authored
Merge pull request #4523 from c2main/always-use-mark-change
Use MARK_CHANGE macro instead of changes++
2 parents c8e2220 + 52328d5 commit fbafab4

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/width.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#include "width.h"
99

1010
#include "indent.h"
11+
#include "mark_change.h"
1112
#include "newlines/add.h"
1213
#include "newlines/cleanup.h"
1314
#include "newlines/one_liner.h"
@@ -174,7 +175,7 @@ static void split_before_chunk(Chunk *pc)
174175
log_rule_B("indent_continue");
175176
reindent_line(pc, pc->GetBraceLevel() * options::indent_columns() +
176177
abs(options::indent_continue()) + 1);
177-
cpd.changes++;
178+
MARK_CHANGE();
178179
}
179180
} // split_before_chunk
180181

@@ -401,7 +402,7 @@ static bool split_line(Chunk *start)
401402
undo_one_liner(start);
402403
newlines_cleanup_braces(false);
403404
// Issue #1352
404-
cpd.changes++;
405+
MARK_CHANGE();
405406
return(false);
406407
}
407408

@@ -929,6 +930,6 @@ static void split_template(Chunk *start)
929930
min_col += abs(options::indent_continue());
930931
}
931932
reindent_line(pc, min_col);
932-
cpd.changes++;
933+
MARK_CHANGE();
933934
}
934935
} // split_templatefcn_params

0 commit comments

Comments
 (0)