diff options
author | August Sodora <augsod@gmail.com> | 2011-11-28 21:44:30 -0500 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-12-01 11:10:28 +0100 |
commit | 443a7229f96806e6bbece775cc7cd643e1c4a042 (patch) | |
tree | c1753b0704662d7d2730abe26a44c3993f0225dd /registry | |
parent | 549f928863d0c1625f0322f62bfdda827063725e (diff) |
Remove uses of charAt
Diffstat (limited to 'registry')
-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 1ff5cb672480..6657cb3f5fb7 100644 --- a/registry/source/keyimpl.cxx +++ b/registry/source/keyimpl.cxx @@ -1061,7 +1061,7 @@ OStoreDirectory ORegKey::getStoreDir() OUString ORegKey::getFullPath(OUString const & path) const { OSL_ASSERT(m_name.getLength() != 0 && path.getLength() != 0); OUStringBuffer b(m_name); - if (b.charAt(b.getLength() - 1) == '/') { + if (b.getLength() > 0 && b[b.getLength() - 1] == '/') { if (path[0] == '/') { b.append(path.getStr() + 1, path.getLength() - 1); } else { |