From 4012b2b37ebabcbdf8a695b418ebc05b897ad0cd Mon Sep 17 00:00:00 2001 From: Kris De Gussem Date: Thu, 20 Oct 2011 21:12:09 +0200 Subject: cppcheck (bzr r10686) --- src/extension/internal/pdfinput/svg-builder.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/extension/internal/pdfinput/svg-builder.cpp') diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp index 93cfa4c71..0103e523b 100644 --- a/src/extension/internal/pdfinput/svg-builder.cpp +++ b/src/extension/internal/pdfinput/svg-builder.cpp @@ -1365,7 +1365,7 @@ void SvgBuilder::addChar(GfxState *state, double x, double y, bool is_space = ( uLen == 1 && u[0] == 32 ); // Skip beginning space - if ( is_space && _glyphs.size() < 1 ) { + if ( is_space && _glyphs.empty()) { Geom::Point delta(dx, dy); _text_position += delta; return; @@ -1405,7 +1405,7 @@ void SvgBuilder::addChar(GfxState *state, double x, double y, } // Copy current style if it has changed since the previous glyph - if (_invalidated_style || _glyphs.size() == 0 ) { + if (_invalidated_style || _glyphs.empty()) { new_glyph.style_changed = true; int render_mode = state->getRender(); // Set style -- cgit v1.2.3