From 84f1f1d149b6ba95aca8adb7e34b001e102f07fe Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Tue, 18 Jun 2013 12:05:03 +0200 Subject: fdo#43460 include,registry,svtools,svx,unodevtools: use isEmpty() Change-Id: I6e35b91092239275694eec3666b076f7ff7e54f6 Reviewed-on: https://gerrit.libreoffice.org/4335 Reviewed-by: Noel Power Tested-by: Noel Power --- registry/source/keyimpl.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'registry') diff --git a/registry/source/keyimpl.cxx b/registry/source/keyimpl.cxx index 05993dd6ff87..36d6cae7157a 100644 --- a/registry/source/keyimpl.cxx +++ b/registry/source/keyimpl.cxx @@ -1043,7 +1043,7 @@ OStoreDirectory ORegKey::getStoreDir() OUString ORegKey::getFullPath(OUString const & path) const { OSL_ASSERT(!m_name.isEmpty() && !path.isEmpty()); OUStringBuffer b(m_name); - if (b.getLength() > 0 && b[b.getLength() - 1] == '/') { + if (!b.isEmpty() && b[b.getLength() - 1] == '/') { if (path[0] == '/') { b.append(path.getStr() + 1, path.getLength() - 1); } else { -- cgit v1.2.3