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 /sd | |
parent | a55d02bacb2c8f21cba759c8fe3931df07a85b0c (diff) |
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 'sd')
-rw-r--r-- | sd/source/filter/html/htmlex.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/filter/html/htmlex.cxx b/sd/source/filter/html/htmlex.cxx index 013d50d43031..4e6ad039600a 100644 --- a/sd/source/filter/html/htmlex.cxx +++ b/sd/source/filter/html/htmlex.cxx @@ -855,7 +855,7 @@ void HtmlExport::ExportWebCast() if (maCGIPath.isEmpty()) maCGIPath = "."; - if (maCGIPath[maCGIPath.getLength() - 1] != '/') + if (!maCGIPath.endsWith("/")) maCGIPath += "/"; if( meScript == SCRIPT_ASP ) @@ -867,7 +867,7 @@ void HtmlExport::ExportWebCast() if (maURLPath.isEmpty()) maURLPath = "."; - if (maURLPath[maURLPath.getLength() - 1] != '/') + if (!maURLPath.endsWith("/")) maURLPath += "/"; } |