summaryrefslogtreecommitdiffstats
path: root/src/display/drawing-text.cpp
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 18:54:25 +0000
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-18 18:54:25 +0000
commit5a5b61fa8085a8c5eec59614834cb882d1d778e2 (patch)
tree848df1de494bcdae296dcaf1de4a164cbaaec780 /src/display/drawing-text.cpp
parentRun clang-tidy’s modernize-pass-by-value pass. (diff)
downloadinkscape-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/display/drawing-text.cpp')
-rw-r--r--src/display/drawing-text.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/display/drawing-text.cpp b/src/display/drawing-text.cpp
index edfd5eca2..76c392d67 100644
--- a/src/display/drawing-text.cpp
+++ b/src/display/drawing-text.cpp
@@ -306,7 +306,7 @@ void DrawingText::decorateStyle(DrawingContext &dc, double vextent, double xphas
else if(_nrstyle.text_decoration_style & TEXT_DECORATION_STYLE_DOTTED){
// FIXME: Per spec, this should produce round dots.
Geom::Point pv = ps;
- while(1){
+ while(true){
Geom::Point pvlast = pv;
if(dots[i]>0){
if(pv[Geom::X] > pf[Geom::X]) break;
@@ -331,7 +331,7 @@ void DrawingText::decorateStyle(DrawingContext &dc, double vextent, double xphas
}
else if(_nrstyle.text_decoration_style & TEXT_DECORATION_STYLE_DASHED){
Geom::Point pv = ps;
- while(1){
+ while(true){
Geom::Point pvlast = pv;
if(dashes[i]>0){
if(pv[Geom::X]> pf[Geom::X]) break;
@@ -359,7 +359,7 @@ void DrawingText::decorateStyle(DrawingContext &dc, double vextent, double xphas
double x = ps[Geom::X];
double y = ps[Geom::Y] + poff[Geom::Y];
dc.moveTo(Geom::Point(x, y + amp * wave[i]));
- while(1){
+ while(true){
i = ((i + 1) & 15);
x += step;
dc.lineTo(Geom::Point(x, y + amp * wave[i]));
@@ -367,7 +367,7 @@ void DrawingText::decorateStyle(DrawingContext &dc, double vextent, double xphas
}
y = ps[Geom::Y] - poff[Geom::Y];
dc.lineTo(Geom::Point(x, y + amp * wave[i]));
- while(1){
+ while(true){
i = ((i - 1) & 15);
x -= step;
dc.lineTo(Geom::Point(x, y + amp * wave[i]));