diff options
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("|"); } |