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 /idlc | |
parent | GPU Calc: implemented COUPNUM (diff) | |
download | core-0e6a2601b39cbadaff7f7506ba9e804f108060db.tar.gz core-0e6a2601b39cbadaff7f7506ba9e804f108060db.zip |
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 'idlc')
-rw-r--r-- | idlc/source/idlcmain.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/idlc/source/idlcmain.cxx b/idlc/source/idlcmain.cxx index 1bff70824b00..89b770bfe7c3 100644 --- a/idlc/source/idlcmain.cxx +++ b/idlc/source/idlcmain.cxx @@ -126,8 +126,8 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) OString depFileUrl; if (options.isValid("-M")) { depFileUrl = convertToFileUrl(options.getOption("-M")); - if ('/' != depFileUrl.getStr()[depFileUrl.getLength()-1]) { - depFileUrl += OString('/'); + if (!depFileUrl.endsWith("/")) { + depFileUrl += "/"; } depFileUrl += strippedFileName.replaceAt( strippedFileName.getLength() -3 , 3, "d"); |