From 22da27d9ddcdacaef21d667b0777052b7e817b9a Mon Sep 17 00:00:00 2001 From: Thomas Arnhold Date: Sat, 21 Jan 2012 19:57:19 +0100 Subject: Improve checking for emptiness --- drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx | 2 +- drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx | 2 +- drawinglayer/source/primitive3d/sdrprimitive3d.cxx | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'drawinglayer/source/primitive3d') diff --git a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx index 0b6447c4101b..8b676cdef929 100644 --- a/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrextrudeprimitive3d.cxx @@ -55,7 +55,7 @@ namespace drawinglayer // get slices const Slice3DVector& rSliceVector = getSlices(); - if(rSliceVector.size()) + if(!rSliceVector.empty()) { sal_uInt32 a; diff --git a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx index cc9cb8bc43ea..1639308f4d9c 100644 --- a/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrlatheprimitive3d.cxx @@ -55,7 +55,7 @@ namespace drawinglayer // get slices const Slice3DVector& rSliceVector = getSlices(); - if(rSliceVector.size()) + if(!rSliceVector.empty()) { const bool bBackScale(!basegfx::fTools::equal(getBackScale(), 1.0)); const bool bClosedRotation(!bBackScale && getHorizontalSegments() && basegfx::fTools::equal(getRotation(), F_2PI)); diff --git a/drawinglayer/source/primitive3d/sdrprimitive3d.cxx b/drawinglayer/source/primitive3d/sdrprimitive3d.cxx index b2a098cc8ad8..e4ee45f2a8cb 100644 --- a/drawinglayer/source/primitive3d/sdrprimitive3d.cxx +++ b/drawinglayer/source/primitive3d/sdrprimitive3d.cxx @@ -64,7 +64,7 @@ namespace drawinglayer { basegfx::B3DRange aRetval; - if(rSlices.size()) + if(!rSlices.empty()) { for(sal_uInt32 a(0L); a < rSlices.size(); a++) { -- cgit