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 /tools | |
parent | 549f928863d0c1625f0322f62bfdda827063725e (diff) |
Remove uses of charAt
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index 4af5f7ea5387..40eb94691131 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -1777,7 +1777,7 @@ bool INetURLObject::convertRelToAbs(rtl::OUString const & rTheRelURIRef, sal_Int32 nPathBegin = aSynAbsURIRef.getLength(); aSynAbsURIRef.append(pBasePathBegin, pBasePathEnd - pBasePathBegin); DBG_ASSERT(aSynAbsURIRef.getLength() > nPathBegin - && aSynAbsURIRef.charAt(aSynAbsURIRef.getLength() - 1) == '/', + && aSynAbsURIRef[aSynAbsURIRef.getLength() - 1] == '/', "INetURLObject::convertRelToAbs(): Bad base path"); while (p != pEnd && *p != nQueryDelimiter && *p != nFragmentDelimiter) @@ -1807,13 +1807,12 @@ bool INetURLObject::convertRelToAbs(rtl::OUString const & rTheRelURIRef, ++p; sal_Int32 i = aSynAbsURIRef.getLength() - 2; - while (i > nPathBegin && aSynAbsURIRef.charAt(i) != '/') + while (i > nPathBegin && aSynAbsURIRef[i] != '/') --i; aSynAbsURIRef.setLength(i + 1); DBG_ASSERT( aSynAbsURIRef.getLength() > nPathBegin - && aSynAbsURIRef.charAt(aSynAbsURIRef.getLength() - 1) - == '/', + && aSynAbsURIRef[aSynAbsURIRef.getLength() - 1] == '/', "INetURLObject::convertRelToAbs(): Bad base path"); continue; } @@ -2275,8 +2274,8 @@ sal_Int32 INetURLObject::getAuthorityBegin() const else nBegin = m_aPath.getBegin(); nBegin -= RTL_CONSTASCII_LENGTH("//"); - DBG_ASSERT(m_aAbsURIRef.charAt(nBegin) == '/' - && m_aAbsURIRef.charAt(nBegin + 1) == '/', + DBG_ASSERT(m_aAbsURIRef.getStr()[nBegin] == '/' + && m_aAbsURIRef.getStr()[nBegin + 1] == '/', "INetURLObject::getAuthority(): Bad authority"); return nBegin; } @@ -3044,7 +3043,7 @@ bool INetURLObject::parsePath(INetProtocol eScheme, || *pPos == nSegmentDelimiter || *pPos == nAltSegmentDelimiter) && aTheSynPath.getLength() == 2 - && INetMIME::isAlpha(aTheSynPath.charAt(1))) + && INetMIME::isAlpha(aTheSynPath[1])) { // A first segment of <ALPHA "|"> is translated to // <ALPHA ":">: |