diff options
author | Olivier Hallot <olivier.hallot@alta.org.br> | 2011-12-14 10:59:15 -0200 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2011-12-17 10:05:35 +0400 |
commit | 4a0ab53cf44be11053a095470ad8cb426487dbc6 (patch) | |
tree | 4b22581634162ddf1477fb58f86ce2a7854c6399 /configmgr/source/data.cxx | |
parent | 091790f678321f8c314ce820f2175050f29de2e3 (diff) |
Fix for fdo43460 Part VIII getLength() to isEmpty()
Part VIII
Module
comfigmgr
Diffstat (limited to 'configmgr/source/data.cxx')
-rw-r--r-- | configmgr/source/data.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx index df7ce604b649..963d3537defc 100644 --- a/configmgr/source/data.cxx +++ b/configmgr/source/data.cxx @@ -99,7 +99,7 @@ bool decode( rtl::OUString Data::createSegment( rtl::OUString const & templateName, rtl::OUString const & name) { - if (templateName.getLength() == 0) { + if (templateName.isEmpty()) { return name; } rtl::OUStringBuffer buf(templateName); @@ -215,7 +215,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation( rtl::OUString * canonicRepresentation, Path * path, int * finalizedLayer) const { - if (pathRepresentation.getLength() == 0 || pathRepresentation[0] != '/') { + if (pathRepresentation.isEmpty() || pathRepresentation[0] != '/') { throw css::uno::RuntimeException( (rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("bad path ")) + pathRepresentation), @@ -295,7 +295,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation( if (setElement) { switch (parent->kind()) { case Node::KIND_LOCALIZED_PROPERTY: - if (templateName.getLength() != 0) { + if (!templateName.isEmpty()) { throw css::uno::RuntimeException( (rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("bad path ")) + @@ -304,7 +304,7 @@ rtl::Reference< Node > Data::resolvePathRepresentation( } break; case Node::KIND_SET: - if (templateName.getLength() != 0 && + if (!templateName.isEmpty() && !dynamic_cast< SetNode * >(parent.get())->isValidTemplate( templateName)) { @@ -321,8 +321,8 @@ rtl::Reference< Node > Data::resolvePathRepresentation( pathRepresentation), css::uno::Reference< css::uno::XInterface >()); } - if (templateName.getLength() != 0 && p != 0) { - assert(p->getTemplateName().getLength() != 0); + if (!templateName.isEmpty() && p != 0) { + assert(!p->getTemplateName().isEmpty()); if (!equalTemplateNames(templateName, p->getTemplateName())) { throw css::uno::RuntimeException( (rtl::OUString( |