diff options
| author | Kris De Gussem <kris.degussem@gmail.com> | 2012-02-15 20:50:04 +0000 |
|---|---|---|
| committer | Kris <Kris.De.Gussem@hotmail.com> | 2012-02-15 20:50:04 +0000 |
| commit | 97642b4ccedbca62162c9321509717ed86f31d6b (patch) | |
| tree | 94975614959c0681fa61031b854458748f5f6b3a /src/sp-text.cpp | |
| parent | More header cleanup/fwd declarations (diff) | |
| download | inkscape-97642b4ccedbca62162c9321509717ed86f31d6b.tar.gz inkscape-97642b4ccedbca62162c9321509717ed86f31d6b.zip | |
cppcheck
(bzr r10987)
Diffstat (limited to 'src/sp-text.cpp')
| -rw-r--r-- | src/sp-text.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/sp-text.cpp b/src/sp-text.cpp index a9c1b2a4b..21c380477 100644 --- a/src/sp-text.cpp +++ b/src/sp-text.cpp @@ -913,15 +913,15 @@ void TextTagAttributes::transform(Geom::Affine const &matrix, double scale_x, do attributes.y[i] = point[Geom::Y]; } } - for (std::vector<SVGLength>::iterator it = attributes.dx.begin() ; it != attributes.dx.end() ; it++) + for (std::vector<SVGLength>::iterator it = attributes.dx.begin() ; it != attributes.dx.end() ; ++it) *it = it->computed * scale_x; - for (std::vector<SVGLength>::iterator it = attributes.dy.begin() ; it != attributes.dy.end() ; it++) + for (std::vector<SVGLength>::iterator it = attributes.dy.begin() ; it != attributes.dy.end() ; ++it) *it = it->computed * scale_y; } double TextTagAttributes::getDx(unsigned index) { - if( attributes.dx.size() == 0 ) { + if( attributes.dx.empty()) { return 0.0; } if( index < attributes.dx.size() ) { @@ -934,7 +934,7 @@ double TextTagAttributes::getDx(unsigned index) double TextTagAttributes::getDy(unsigned index) { - if( attributes.dy.size() == 0 ) { + if( attributes.dy.empty() ) { return 0.0; } if( index < attributes.dy.size() ) { @@ -980,7 +980,7 @@ void TextTagAttributes::addToDxDy(unsigned index, Geom::Point const &adjust) double TextTagAttributes::getRotate(unsigned index) { - if( attributes.rotate.size() == 0 ) { + if( attributes.rotate.empty() ) { return 0.0; } if( index < attributes.rotate.size() ) { |
