diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-23 13:29:32 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-04 08:06:10 +0200 |
commit | 0e6a2601b39cbadaff7f7506ba9e804f108060db (patch) | |
tree | ffd6bb4970f689d20087b721eb8dfd4bc86cd53f /tools | |
parent | 457b349edbaf6d9dc747f3a631fee70e0c035bae (diff) |
Convert code that calls OUString::getStr()[] to use the [] operator
This also means that this code now gets bounds checked in debug builds.
Change-Id: Id777f85eaee6a737bbcb84625e6e110abe0e0f27
Diffstat (limited to 'tools')
-rw-r--r-- | tools/source/fsys/urlobj.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/source/fsys/urlobj.cxx b/tools/source/fsys/urlobj.cxx index c1bb3cc60127..56173663b68c 100644 --- a/tools/source/fsys/urlobj.cxx +++ b/tools/source/fsys/urlobj.cxx @@ -2248,8 +2248,7 @@ sal_Int32 INetURLObject::getAuthorityBegin() const else nBegin = m_aPath.getBegin(); nBegin -= RTL_CONSTASCII_LENGTH("//"); - DBG_ASSERT(m_aAbsURIRef.getStr()[nBegin] == '/' - && m_aAbsURIRef.getStr()[nBegin + 1] == '/', + DBG_ASSERT(m_aAbsURIRef[nBegin] == '/' && m_aAbsURIRef[nBegin + 1] == '/', "INetURLObject::getAuthority(): Bad authority"); return nBegin; } @@ -3943,7 +3942,7 @@ bool INetURLObject::operator ==(INetURLObject const & rObject) const switch (nLength - aPath2.getLength()) { case -1: - if (aPath2.getStr()[nLength] != '/') + if (aPath2[nLength] != '/') return false; break; @@ -3951,7 +3950,7 @@ bool INetURLObject::operator ==(INetURLObject const & rObject) const break; case 1: - if (aPath1.getStr()[--nLength] != '/') + if (aPath1[--nLength] != '/') return false; break; |