diff options
author | Jelle van der Waa <jelle@vdwaa.nl> | 2013-06-18 12:05:03 +0200 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-06-18 17:33:46 +0000 |
commit | 84f1f1d149b6ba95aca8adb7e34b001e102f07fe (patch) | |
tree | cdf2ba0af70fc3ddb0536415d4bd8d5e51bbee22 /registry/source | |
parent | caab53cf21bc38ead3927941795b3c8a1432589a (diff) |
fdo#43460 include,registry,svtools,svx,unodevtools: use isEmpty()
Change-Id: I6e35b91092239275694eec3666b076f7ff7e54f6
Reviewed-on: https://gerrit.libreoffice.org/4335
Reviewed-by: Noel Power <noel.power@suse.com>
Tested-by: Noel Power <noel.power@suse.com>
Diffstat (limited to 'registry/source')
-rw-r--r-- | registry/source/keyimpl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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 { |