diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-12 17:01:19 -0200 |
---|---|---|
committer | Olivier Hallot <olivier.hallot@alta.org.br> | 2012-01-12 19:15:08 -0200 |
commit | 71dc235aba9597c3485a791a319a34e4258138db (patch) | |
tree | 7a6e5ab99469ee3fd292c435198cb62c58950394 /stoc/source/registry_tdprovider/tdservice.cxx | |
parent | 14359c82eb91b69212cbf0f743e819776a8f6d3a (diff) |
Fix for fdo43460 Part XXXV getLength() to isEmpty()
Part XXXV
Modules
stoc
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))) { |