summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJelle van der Waa <jelle@vdwaa.nl>2013-06-17 17:16:51 +0200
committerNoel Power <noel.power@suse.com>2013-06-17 19:33:01 +0000
commit97460c421abec14150c4ddde27daeef892c86b16 (patch)
tree88be538446f52694eb3b5b3d2e4aa4929e72df5f
parent9ee7be4efb494351c4be096ffa04cdbd85cdc3d4 (diff)
fdo#43460 configmgr: use isEmpty()
Change-Id: Ifab7cef3e883bc10632ac280ca382b2c68bc79e1 Reviewed-on: https://gerrit.libreoffice.org/4317 Reviewed-by: Noel Power <noel.power@suse.com> Tested-by: Noel Power <noel.power@suse.com>
-rw-r--r--configmgr/source/access.cxx10
-rw-r--r--configmgr/source/childaccess.cxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/configmgr/source/access.cxx b/configmgr/source/access.cxx
index 9f18e8fdb9b9..1219f37640c8 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 587f59bff415..b5a34efbd449 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('/'));
}
}