diff options
Diffstat (limited to 'stoc/source/registry_tdprovider/tdservice.cxx')
-rw-r--r-- | stoc/source/registry_tdprovider/tdservice.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stoc/source/registry_tdprovider/tdservice.cxx b/stoc/source/registry_tdprovider/tdservice.cxx index f7c94675627b..ed2a254de75f 100644 --- a/stoc/source/registry_tdprovider/tdservice.cxx +++ b/stoc/source/registry_tdprovider/tdservice.cxx @@ -56,7 +56,7 @@ public: virtual ~Constructor() {} virtual sal_Bool SAL_CALL isDefaultConstructor() throw (RuntimeException) - { return m_desc.getName().getLength() == 0; } + { return m_desc.getName().isEmpty(); } virtual rtl::OUString SAL_CALL getName() throw (RuntimeException) { return m_desc.getName(); } @@ -351,7 +351,7 @@ ServiceTypeDescriptionImpl::getConstructors() throw (RuntimeException) { if (reader.getMethodFlags(i) != RT_MODE_TWOWAY || (!reader.getMethodReturnTypeName(i).equalsAsciiL( RTL_CONSTASCII_STRINGPARAM("void"))) - || (name.getLength() == 0 + || (name.isEmpty() && (ctorCount != 1 || reader.getMethodParameterCount(i) != 0 || reader.getMethodExceptionCount(i) != 0))) { |