From 0e6a2601b39cbadaff7f7506ba9e804f108060db Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 23 Oct 2013 13:29:32 +0200 Subject: 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 --- codemaker/source/codemaker/global.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'codemaker') 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; -- cgit