summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorAugust Sodora <augsod@gmail.com>2011-11-28 21:44:30 -0500
committerThorsten Behrens <tbehrens@suse.com>2011-12-01 11:10:28 +0100
commit443a7229f96806e6bbece775cc7cd643e1c4a042 (patch)
treec1753b0704662d7d2730abe26a44c3993f0225dd /sal
parent549f928863d0c1625f0322f62bfdda827063725e (diff)
Remove uses of charAt
Diffstat (limited to 'sal')
-rw-r--r--sal/rtl/source/uri.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/rtl/source/uri.cxx b/sal/rtl/source/uri.cxx
index 89107df17c7b..af5da83e785f 100644
--- a/sal/rtl/source/uri.cxx
+++ b/sal/rtl/source/uri.cxx
@@ -495,7 +495,7 @@ rtl::OUString joinPaths(Component const & rBasePath, Component const & rRelPath)
}
else
{
- while (aBuffer.charAt(i - 1) != '/')
+ while (i > 0 && aBuffer[i - 1] != '/')
--i;
aBuffer.setLength(i);
}