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 /unodevtools | |
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 'unodevtools')
-rw-r--r-- | unodevtools/source/skeletonmaker/cppcompskeleton.cxx | 4 | ||||
-rw-r--r-- | unodevtools/source/skeletonmaker/javacompskeleton.cxx | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx index 435ee4d6d586..98166eec193c 100644 --- a/unodevtools/source/skeletonmaker/cppcompskeleton.cxx +++ b/unodevtools/source/skeletonmaker/cppcompskeleton.cxx @@ -808,14 +808,14 @@ OString generateClassDefinition(std::ostream& o, } if (propinterfaces.find("com/sun/star/beans/XFastPropertySet") != propinterfaces.end()) { - if (buffer.getLength() > 0) + if (!buffer.isEmpty()) buffer.append(" | IMPLEMENTS_FAST_PROPERTY_SET"); else buffer.append("IMPLEMENTS_FAST_PROPERTY_SET"); } if (propinterfaces.find("com/sun/star/beans/XPropertyAccess") != propinterfaces.end()) { - if (buffer.getLength() > 0) + if (!buffer.isEmpty()) buffer.append(" | IMPLEMENTS_PROPERTY_ACCESS"); else buffer.append("IMPLEMENTS_PROPERTY_ACCESS"); diff --git a/unodevtools/source/skeletonmaker/javacompskeleton.cxx b/unodevtools/source/skeletonmaker/javacompskeleton.cxx index b617eea614b4..86ba7051033a 100644 --- a/unodevtools/source/skeletonmaker/javacompskeleton.cxx +++ b/unodevtools/source/skeletonmaker/javacompskeleton.cxx @@ -206,7 +206,7 @@ bool checkAttribute( for (sal_uInt16 i = 0; i < 9; i++) { if (attribute & attributes[i]) { - if (attributeValue.getLength() > 0) { + if (!attributeValue.isEmpty()) { cast |= true; attributeValue.append("|"); } |