summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-10-23 13:29:32 +0200
committerNoel Grandin <noel@peralex.com>2013-11-04 08:06:10 +0200
commit0e6a2601b39cbadaff7f7506ba9e804f108060db (patch)
treeffd6bb4970f689d20087b721eb8dfd4bc86cd53f /scripting
parent457b349edbaf6d9dc747f3a631fee70e0c035bae (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 'scripting')
-rw-r--r--scripting/source/stringresource/stringresource.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripting/source/stringresource/stringresource.cxx b/scripting/source/stringresource/stringresource.cxx
index cc0c611e2c2d..69c5df0f798a 100644
--- a/scripting/source/stringresource/stringresource.cxx
+++ b/scripting/source/stringresource/stringresource.cxx
@@ -1672,7 +1672,7 @@ bool checkNamingSceme( const OUString& aName, const OUString& aNameBase,
// Name has to start with NameBase followed
// by a '_' and at least one more character
if( aName.startsWith( aNameBase ) && nNameBaseLen < nNameLen-1 &&
- aName.getStr()[nNameBaseLen] == '_' )
+ aName[nNameBaseLen] == '_' )
{
bSuccess = true;
@@ -2671,8 +2671,8 @@ void StringResourceWithLocationImpl::initialize( const Sequence< Any >& aArgumen
}
else
{
- if( m_aLocation.getStr()[nLen - 1] != '/' )
- m_aLocation += OUString("/");
+ if( m_aLocation[nLen - 1] != '/' )
+ m_aLocation += "/";
}
if( !bOk )