summaryrefslogtreecommitdiffstats
path: root/src/sp-gradient.cpp
diff options
context:
space:
mode:
authorKris De Gussem <kris.degussem@gmail.com>2012-03-07 17:19:18 +0000
committerKris <Kris.De.Gussem@hotmail.com>2012-03-07 17:19:18 +0000
commit2eb76fb0bd4b8572866d3c2390eaa82747890292 (patch)
tree673eb8fdedd2cc54fd48347fb59cc5e1e20f8508 /src/sp-gradient.cpp
parentTranslations. Greek translation update by Dimitris Spingos. (diff)
downloadinkscape-2eb76fb0bd4b8572866d3c2390eaa82747890292.tar.gz
inkscape-2eb76fb0bd4b8572866d3c2390eaa82747890292.zip
cppcheck
(bzr r11052)
Diffstat (limited to 'src/sp-gradient.cpp')
-rw-r--r--src/sp-gradient.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sp-gradient.cpp b/src/sp-gradient.cpp
index 0acdac76e..0934c0705 100644
--- a/src/sp-gradient.cpp
+++ b/src/sp-gradient.cpp
@@ -1035,7 +1035,7 @@ void SPGradient::rebuildVector()
SPStop *stop = SP_STOP(child);
SPGradientStop gstop;
- if (vector.stops.size() > 0) {
+ if (!vector.stops.empty()) {
// "Each gradient offset value is required to be equal to or greater than the
// previous gradient stop's offset value. If a given gradient stop's offset
// value is not equal to or greater than all previous offset values, then the
@@ -1059,7 +1059,7 @@ void SPGradient::rebuildVector()
}
// Normalize per section 13.2.4 of SVG 1.1.
- if (vector.stops.size() == 0) {
+ if (vector.stops.empty()) {
/* "If no stops are defined, then painting shall occur as if 'none' were specified as the
* paint style."
*/