diff options
author | Noel Grandin <noel@peralex.com> | 2013-10-21 10:21:01 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-10-23 08:29:15 +0200 |
commit | 7a06928bcf638e1eeedebc9d53c306a1b852cc9b (patch) | |
tree | c0402c2da4e2c522ecf32a0b413128f727cbc0fa /idlc/source/idlcmain.cxx | |
parent | macosx: add a LSMinimumSystemVersion in Info.plist (diff) | |
download | core-7a06928bcf638e1eeedebc9d53c306a1b852cc9b.tar.gz core-7a06928bcf638e1eeedebc9d53c306a1b852cc9b.zip |
convert code to use OUString::endsWith
Convert places that call
aStr[aStr.getLength()-1] == 'x'
to use the shorter form
aStr.endsWith("x")
Change-Id: I1b3a19c0e89b8989cdbeed440f95fc76f9a4b6b6
Diffstat (limited to 'idlc/source/idlcmain.cxx')
-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 fbec6deb6af5..1bff70824b00 100644 --- a/idlc/source/idlcmain.cxx +++ b/idlc/source/idlcmain.cxx @@ -67,7 +67,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) OString outputUrl; if (options.isValid("-O")) { outputUrl = convertToFileUrl(options.getOption("-O")); - if (outputUrl[outputUrl.getLength() - 1] != '/') { + if (!outputUrl.endsWith("/")) { outputUrl += "/"; } outputUrl += "stdin.urd"; @@ -112,7 +112,7 @@ SAL_IMPLEMENT_MAIN_WITH_ARGS(argc, argv) if ( options.isValid("-O") ) { outputFile = (options.getOption("-O")); - if ('/' != outputFile.getStr()[outputFile.getLength()-1]) { + if (!outputFile.endsWith("/")) { outputFile += OString('/'); } outputFile += strippedFileName.replaceAt( |