summaryrefslogtreecommitdiff
path: root/filter/source/placeware/tempfile.cxx
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 /filter/source/placeware/tempfile.cxx
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 'filter/source/placeware/tempfile.cxx')
-rw-r--r--filter/source/placeware/tempfile.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/filter/source/placeware/tempfile.cxx b/filter/source/placeware/tempfile.cxx
index faa8b5658e06..1a40047a9659 100644
--- a/filter/source/placeware/tempfile.cxx
+++ b/filter/source/placeware/tempfile.cxx
@@ -141,7 +141,7 @@ OUString PlaceWareTempFile::createTempFileURL()
{
u %= (nRadix*nRadix*nRadix);
OUString aTmp( aTempDirURL );
- if( aTmp.getStr()[ aTmp.getLength() - 1 ] != sal_Unicode( '/' ) )
+ if( !aTmp.endsWith("/") )
aTmp += "/";
aTmp += OUString::number( (unsigned) u, nRadix );
aTmp += ".tmp";