[Libreoffice-commits] core.git: configmgr/source

Jelle van der Waa jelle at vdwaa.nl
Mon Jun 17 12:33:25 PDT 2013


 configmgr/source/access.cxx      |   10 +++++-----
 configmgr/source/childaccess.cxx |    2 +-
 2 files changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 97460c421abec14150c4ddde27daeef892c86b16
Author: Jelle van der Waa <jelle at vdwaa.nl>
Date:   Mon Jun 17 17:16:51 2013 +0200

    fdo#43460 configmgr: use isEmpty()
    
    Change-Id: Ifab7cef3e883bc10632ac280ca382b2c68bc79e1
    Reviewed-on: https://gerrit.libreoffice.org/4317
    Reviewed-by: Noel Power <noel.power at suse.com>
    Tested-by: Noel Power <noel.power at suse.com>

diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index 9f18e8f..1219f37 100644
--- a/configmgr/source/access.cxx
+++ b/configmgr/source/access.cxx
@@ -571,7 +571,7 @@ OUString Access::getHierarchicalName() throw (css::uno::RuntimeException) {
         path.append(root->getAbsolutePathRepresentation());
     }
     OUString rel(getRelativePathRepresentation());
-    if (path.getLength() != 0 && !rel.isEmpty()) {
+    if (!path.isEmpty() && !rel.isEmpty()) {
         path.append(sal_Unicode('/'));
     }
     path.append(rel);
@@ -594,7 +594,7 @@ OUString Access::composeHierarchicalName(
             static_cast< cppu::OWeakObject * >(this), -1);
     }
     OUStringBuffer path(getRelativePathRepresentation());
-    if (path.getLength() != 0) {
+    if (!path.isEmpty()) {
         path.append(sal_Unicode('/'));
     }
     path.append(aRelativeName);
@@ -1873,7 +1873,7 @@ void Access::initBroadcasterAndChanges(
                 }
                 if (allChanges != 0) {
                     OUStringBuffer path(getRelativePathRepresentation());
-                    if (path.getLength() != 0) {
+                    if (!path.isEmpty()) {
                         path.append(sal_Unicode('/'));
                     }
                     path.append(
@@ -1935,7 +1935,7 @@ void Access::initBroadcasterAndChanges(
                     if (allChanges != 0) {
                         OUStringBuffer path(
                             getRelativePathRepresentation());
-                        if (path.getLength() != 0) {
+                        if (!path.isEmpty()) {
                             path.append(sal_Unicode('/'));
                         }
                         path.append(i->first);
@@ -1972,7 +1972,7 @@ void Access::initBroadcasterAndChanges(
                     if (allChanges != 0) {
                         OUStringBuffer path(
                             getRelativePathRepresentation());
-                        if (path.getLength() != 0) {
+                        if (!path.isEmpty()) {
                             path.append(sal_Unicode('/'));
                         }
                         path.append(
diff --git a/configmgr/source/childaccess.cxx b/configmgr/source/childaccess.cxx
index 587f59b..b5a34ef 100644
--- a/configmgr/source/childaccess.cxx
+++ b/configmgr/source/childaccess.cxx
@@ -113,7 +113,7 @@ OUString ChildAccess::getRelativePathRepresentation() {
     rtl::Reference< Access > parent(getParentAccess());
     if (parent.is()) {
         path.append(parent->getRelativePathRepresentation());
-        if (path.getLength() != 0) {
+        if (!path.isEmpty()) {
             path.append(sal_Unicode('/'));
         }
     }


More information about the Libreoffice-commits mailing list