Kaydet (Commit) 97460c42 authored tarafından Jelle van der Waa's avatar Jelle van der Waa Kaydeden (comit) Noel Power

fdo#43460 configmgr: use isEmpty()

Change-Id: Ifab7cef3e883bc10632ac280ca382b2c68bc79e1
Reviewed-on: https://gerrit.libreoffice.org/4317Reviewed-by: 's avatarNoel Power <noel.power@suse.com>
Tested-by: 's avatarNoel Power <noel.power@suse.com>
üst 9ee7be4e
...@@ -571,7 +571,7 @@ OUString Access::getHierarchicalName() throw (css::uno::RuntimeException) { ...@@ -571,7 +571,7 @@ OUString Access::getHierarchicalName() throw (css::uno::RuntimeException) {
path.append(root->getAbsolutePathRepresentation()); path.append(root->getAbsolutePathRepresentation());
} }
OUString rel(getRelativePathRepresentation()); OUString rel(getRelativePathRepresentation());
if (path.getLength() != 0 && !rel.isEmpty()) { if (!path.isEmpty() && !rel.isEmpty()) {
path.append(sal_Unicode('/')); path.append(sal_Unicode('/'));
} }
path.append(rel); path.append(rel);
...@@ -594,7 +594,7 @@ OUString Access::composeHierarchicalName( ...@@ -594,7 +594,7 @@ OUString Access::composeHierarchicalName(
static_cast< cppu::OWeakObject * >(this), -1); static_cast< cppu::OWeakObject * >(this), -1);
} }
OUStringBuffer path(getRelativePathRepresentation()); OUStringBuffer path(getRelativePathRepresentation());
if (path.getLength() != 0) { if (!path.isEmpty()) {
path.append(sal_Unicode('/')); path.append(sal_Unicode('/'));
} }
path.append(aRelativeName); path.append(aRelativeName);
...@@ -1873,7 +1873,7 @@ void Access::initBroadcasterAndChanges( ...@@ -1873,7 +1873,7 @@ void Access::initBroadcasterAndChanges(
} }
if (allChanges != 0) { if (allChanges != 0) {
OUStringBuffer path(getRelativePathRepresentation()); OUStringBuffer path(getRelativePathRepresentation());
if (path.getLength() != 0) { if (!path.isEmpty()) {
path.append(sal_Unicode('/')); path.append(sal_Unicode('/'));
} }
path.append( path.append(
...@@ -1935,7 +1935,7 @@ void Access::initBroadcasterAndChanges( ...@@ -1935,7 +1935,7 @@ void Access::initBroadcasterAndChanges(
if (allChanges != 0) { if (allChanges != 0) {
OUStringBuffer path( OUStringBuffer path(
getRelativePathRepresentation()); getRelativePathRepresentation());
if (path.getLength() != 0) { if (!path.isEmpty()) {
path.append(sal_Unicode('/')); path.append(sal_Unicode('/'));
} }
path.append(i->first); path.append(i->first);
...@@ -1972,7 +1972,7 @@ void Access::initBroadcasterAndChanges( ...@@ -1972,7 +1972,7 @@ void Access::initBroadcasterAndChanges(
if (allChanges != 0) { if (allChanges != 0) {
OUStringBuffer path( OUStringBuffer path(
getRelativePathRepresentation()); getRelativePathRepresentation());
if (path.getLength() != 0) { if (!path.isEmpty()) {
path.append(sal_Unicode('/')); path.append(sal_Unicode('/'));
} }
path.append( path.append(
......
...@@ -113,7 +113,7 @@ OUString ChildAccess::getRelativePathRepresentation() { ...@@ -113,7 +113,7 @@ OUString ChildAccess::getRelativePathRepresentation() {
rtl::Reference< Access > parent(getParentAccess()); rtl::Reference< Access > parent(getParentAccess());
if (parent.is()) { if (parent.is()) {
path.append(parent->getRelativePathRepresentation()); path.append(parent->getRelativePathRepresentation());
if (path.getLength() != 0) { if (!path.isEmpty()) {
path.append(sal_Unicode('/')); path.append(sal_Unicode('/'));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment