diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 08:12:17 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-10-19 10:02:39 +0200 |
commit | 2c1b7e8d6a7fa22cb91919238418816671c3a497 (patch) | |
tree | 6f356017d24dffcd25261295ab25a21b738dc835 /oox/source/vml/vmlformatting.cxx | |
parent | ad18bb24d51e4f735085d50c496d28bd637dbb0b (diff) |
clang-tidy readability-container-size-empty
Change-Id: I1df70b7dff5ebb6048f7fc618789faa15ca5d422
Reviewed-on: https://gerrit.libreoffice.org/61967
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'oox/source/vml/vmlformatting.cxx')
-rw-r--r-- | oox/source/vml/vmlformatting.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/oox/source/vml/vmlformatting.cxx b/oox/source/vml/vmlformatting.cxx index cbd40329ffe8..0dc6a766fee9 100644 --- a/oox/source/vml/vmlformatting.cxx +++ b/oox/source/vml/vmlformatting.cxx @@ -342,7 +342,7 @@ void ConversionHelper::decodeVmlPath( ::std::vector< ::std::vector< Point > >& r { case MOVE_REL: aCoordList.resize(2, 0); // 2* params -> param count reset - if ( rPointLists.size() > 0 && rPointLists.back().size() > 0 ) + if ( !rPointLists.empty() && !rPointLists.back().empty() ) { rPointLists.emplace_back( ); rFlagLists.emplace_back( ); @@ -355,7 +355,7 @@ void ConversionHelper::decodeVmlPath( ::std::vector< ::std::vector< Point > >& r case MOVE_ABS: aCoordList.resize(2, 0); // 2 params -> no param count reset - if ( rPointLists.size() > 0 && rPointLists.back().size() > 0 ) + if ( !rPointLists.empty() && !rPointLists.back().empty() ) { rPointLists.emplace_back( ); rFlagLists.emplace_back( ); |