diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-18 18:54:25 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-18 18:54:25 +0000 |
| commit | 5a5b61fa8085a8c5eec59614834cb882d1d778e2 (patch) | |
| tree | 848df1de494bcdae296dcaf1de4a164cbaaec780 /src/livarot | |
| parent | Run clang-tidy’s modernize-pass-by-value pass. (diff) | |
| download | inkscape-5a5b61fa8085a8c5eec59614834cb882d1d778e2.tar.gz inkscape-5a5b61fa8085a8c5eec59614834cb882d1d778e2.zip | |
Run clang-tidy’s modernize-use-bool-literals pass.
This makes it clearer whether an integer or a boolean has to be passed
in this specific call.
Diffstat (limited to 'src/livarot')
| -rw-r--r-- | src/livarot/ShapeMisc.cpp | 6 | ||||
| -rw-r--r-- | src/livarot/ShapeSweep.cpp | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/livarot/ShapeMisc.cpp b/src/livarot/ShapeMisc.cpp index f44a326ba..63700e1ba 100644 --- a/src/livarot/ShapeMisc.cpp +++ b/src/livarot/ShapeMisc.cpp @@ -163,7 +163,7 @@ Shape::ConvertToForme (Path * dest) } } } - while (1 /*swdData[curBord].precParc >= 0 */ ); + while (true /*swdData[curBord].precParc >= 0 */ ); // fin du cas non-oriente } } @@ -316,7 +316,7 @@ Shape::ConvertToForme (Path * dest, int nbP, Path * *orig, bool splitWhenForced) //printf("suite %d\n",curBord); } } - while (1 /*swdData[curBord].precParc >= 0 */ ); + while (true /*swdData[curBord].precParc >= 0 */ ); // fin du cas non-oriente } } @@ -527,7 +527,7 @@ Shape::ConvertToFormeNested (Path * dest, int nbP, Path * *orig, int /*wildPath* //printf("suite %d\n",curBord); } } - while (1 /*swdData[curBord].precParc >= 0 */ ); + while (true /*swdData[curBord].precParc >= 0 */ ); // fin du cas non-oriente } } diff --git a/src/livarot/ShapeSweep.cpp b/src/livarot/ShapeSweep.cpp index 4004f183d..53e9d3137 100644 --- a/src/livarot/ShapeSweep.cpp +++ b/src/livarot/ShapeSweep.cpp @@ -2496,7 +2496,7 @@ Shape::GetWindings (Shape * /*a*/, Shape * /*b*/, BooleanOp /*mod*/, bool brutal curDir = true; } } - while (1 /*swdData[curBord].precParc >= 0 */ ); + while (true /*swdData[curBord].precParc >= 0 */ ); // fin du cas non-oriente } } |
