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/object/sp-gradient.cpp | |
| 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/object/sp-gradient.cpp')
| -rw-r--r-- | src/object/sp-gradient.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/object/sp-gradient.cpp b/src/object/sp-gradient.cpp index 1fed2a206..0e3fa8e77 100644 --- a/src/object/sp-gradient.cpp +++ b/src/object/sp-gradient.cpp @@ -107,7 +107,7 @@ bool SPGradient::isEquivalent(SPGradient *that) bool status = false; - while(1){ // not really a loop, used to avoid deep nesting or multiple exit points from function + while(true){ // not really a loop, used to avoid deep nesting or multiple exit points from function if (this->getStopCount() != that->getStopCount()) { break; } if (this->hasStops() != that->hasStops()) { break; } if (!this->getVector() || !that->getVector()) { break; } @@ -167,7 +167,7 @@ bool SPGradient::isAligned(SPGradient *that) matches the default value. */ - while(1){ // not really a loop, used to avoid deep nesting or multiple exit points from function + while(true){ // not really a loop, used to avoid deep nesting or multiple exit points from function if(this->gradientTransform_set != that->gradientTransform_set) { break; } if(this->gradientTransform_set && (this->gradientTransform != that->gradientTransform)) { break; } |
