summaryrefslogtreecommitdiff
path: root/codemaker
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 /codemaker
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 'codemaker')
-rw-r--r--codemaker/source/codemaker/global.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/codemaker/source/codemaker/global.cxx b/codemaker/source/codemaker/global.cxx
index bfe77c452af8..d6c5a0fae942 100644
--- a/codemaker/source/codemaker/global.cxx
+++ b/codemaker/source/codemaker/global.cxx
@@ -87,10 +87,10 @@ OString createFileNameFromType( const OString& destination,
length += prefix.getLength() + type.getLength() + postfix.getLength();
sal_Bool withSeparator = sal_False;
- if (destination.getStr()[destination.getLength()] != '\\' &&
- destination.getStr()[destination.getLength()] != '/' &&
- type.getStr()[0] != '\\' &&
- type.getStr()[0] != '/')
+ if (destination[destination.getLength()] != '\\' &&
+ destination[destination.getLength()] != '/' &&
+ type[0] != '\\' &&
+ type[0] != '/')
{
length++;
withSeparator = sal_True;