summaryrefslogtreecommitdiffstats
path: root/configmgr/source/access.cxx
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 /configmgr/source/access.cxx
parentresolved fdo#65082 RATE function should not find roots <= -1 (diff)
downloadcore-97460c421abec14150c4ddde27daeef892c86b16.tar.gz
core-97460c421abec14150c4ddde27daeef892c86b16.zip
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>
Diffstat (limited to 'configmgr/source/access.cxx')
-rw-r--r--configmgr/source/access.cxx10
1 files changed, 5 insertions, 5 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(