diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-06-18 12:05:03 +0200 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-06-18 17:33:46 +0000 |
commit | 84f1f1d149b6ba95aca8adb7e34b001e102f07fe (patch) | |
tree | cdf2ba0af70fc3ddb0536415d4bd8d5e51bbee22 /svx | |
parent | caab53cf21bc38ead3927941795b3c8a1432589a (diff) |
fdo#43460 include,registry,svtools,svx,unodevtools: use isEmpty()
Change-Id: I6e35b91092239275694eec3666b076f7ff7e54f6
Reviewed-on: https://gerrit.libreoffice.org/4335
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/form/formcontroller.cxx | 4 | ||||
-rw-r--r-- | svx/source/svdraw/svdmodel.cxx | 6 | ||||
-rw-r--r-- | svx/source/svdraw/svdtrans.cxx | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index 9a0ee3ed3da0..7145abb1e60f 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -870,9 +870,9 @@ void FormController::getFastPropertyValue( Any& rValue, sal_Int32 nHandle ) cons aRowFilter.append( sCriteria ); } } - if ( aRowFilter.getLength() > 0 ) + if ( !aRowFilter.isEmpty() ) { - if ( aFilter.getLength() ) + if ( !aFilter.isEmpty() ) aFilter.appendAscii( " OR " ); aFilter.appendAscii( "( " ); diff --git a/svx/source/svdraw/svdmodel.cxx b/svx/source/svdraw/svdmodel.cxx index 2e702cce873a..886064ca105b 100644 --- a/svx/source/svdraw/svdmodel.cxx +++ b/svx/source/svdraw/svdmodel.cxx @@ -1315,11 +1315,11 @@ void SdrModel::TakeMetricStr(long nVal, OUString& rStr, bool bNoUnitChars, sal_I if(!rLoc.isNumTrailingZeros()) { // Remove all trailing zeros. - while (aBuf.getLength() && aBuf[aBuf.getLength()-1] == sal_Unicode('0')) + while (!aBuf.isEmpty() && aBuf[aBuf.getLength()-1] == sal_Unicode('0')) aBuf.remove(aBuf.getLength()-1, 1); // Remove decimal if it's the last character. - if (aBuf.getLength() && aBuf[aBuf.getLength()-1] == cDec) + if (!aBuf.isEmpty() && aBuf[aBuf.getLength()-1] == cDec) aBuf.remove(aBuf.getLength()-1, 1); } @@ -1340,7 +1340,7 @@ void SdrModel::TakeMetricStr(long nVal, OUString& rStr, bool bNoUnitChars, sal_I } } - if (!aBuf.getLength()) + if (aBuf.isEmpty()) aBuf.append(sal_Unicode('0')); if(bNegative) diff --git a/svx/source/svdraw/svdtrans.cxx b/svx/source/svdraw/svdtrans.cxx index 91e3f77a2f18..60710edb5229 100644 --- a/svx/source/svdraw/svdtrans.cxx +++ b/svx/source/svdraw/svdtrans.cxx @@ -925,7 +925,7 @@ void SdrFormatter::TakeStr(long nVal, OUString& rStr) const } } - if(!aStr.getLength()) + if(aStr.isEmpty()) aStr.insert(aStr.getLength(), aNullCode); if(bNeg && (aStr.getLength() > 1 || aStr[0] != aNullCode[0])) |