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 <je...@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.po...@suse.com> Tested-by: Noel Power <noel.po...@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('/')); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits