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 /drawinglayer/source/processor2d | |
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 'drawinglayer/source/processor2d')
-rw-r--r-- | drawinglayer/source/processor2d/hittestprocessor2d.cxx | 2 | ||||
-rw-r--r-- | drawinglayer/source/processor2d/vclprocessor2d.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drawinglayer/source/processor2d/hittestprocessor2d.cxx b/drawinglayer/source/processor2d/hittestprocessor2d.cxx index d0d428370d41..17f740587931 100644 --- a/drawinglayer/source/processor2d/hittestprocessor2d.cxx +++ b/drawinglayer/source/processor2d/hittestprocessor2d.cxx @@ -199,7 +199,7 @@ namespace drawinglayer true); aCutFindProcessor.process(rPrimitives); - mbHit = (0 != aCutFindProcessor.getCutPoints().size()); + mbHit = (!aCutFindProcessor.getCutPoints().empty()); } } } diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 206ff787b40a..de94ac307120 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -230,7 +230,7 @@ namespace drawinglayer // create transformed integer DXArray in view coordinate system std::vector< long > aTransformedDXArray; - if(rTextCandidate.getDXArray().size()) + if(!rTextCandidate.getDXArray().empty()) { aTransformedDXArray.reserve(rTextCandidate.getDXArray().size()); const basegfx::B2DVector aPixelVector(maCurrentTransformation * basegfx::B2DVector(1.0, 0.0)); @@ -262,7 +262,7 @@ namespace drawinglayer sal_Int32 nPos = rTextCandidate.getTextPosition(); sal_Int32 nLen = rTextCandidate.getTextLength(); - long* pDXArray = aTransformedDXArray.size() ? &(aTransformedDXArray[0]) : nullptr ; + long* pDXArray = !aTransformedDXArray.empty() ? &(aTransformedDXArray[0]) : nullptr ; if ( rTextCandidate.isFilled() ) { |