diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-21 15:52:45 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-22 08:07:19 +0200 |
commit | 73342dbb82ba074d01962359dac50fb2aa36cbeb (patch) | |
tree | addab0397681725810b42ad55ab15be3fdb4c236 /stoc/source | |
parent | 071c3f3e93c4c00cf57ce3c382325cd717fed511 (diff) |
remove unnecessary RTL_CONSTASCII_STRINGPARAM
A final pass through the code, converting code to use the new
OUString and OString methods that can detect string literals.
Change-Id: Ifa6382335e5650a1c67e52006b26354e0692c710
Diffstat (limited to 'stoc/source')
-rw-r--r-- | stoc/source/uriproc/ExternalUriReferenceTranslator.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx index 91f5b8cd68d8..32d1553dc8f2 100644 --- a/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx +++ b/stoc/source/uriproc/ExternalUriReferenceTranslator.cxx @@ -102,8 +102,7 @@ OUString Translator::translateToInternal( OUString const & externalUriReference) throw (css::uno::RuntimeException) { - if (!externalUriReference.matchIgnoreAsciiCaseAsciiL( - RTL_CONSTASCII_STRINGPARAM("file:/"))) + if (!externalUriReference.matchIgnoreAsciiCase("file:/")) { return externalUriReference; } @@ -112,7 +111,7 @@ OUString Translator::translateToInternal( buf.append(externalUriReference.getStr(), i); // Some environments (e.g., Java) produce illegal file URLs without an // authority part; treat them as having an empty authority part: - if (!externalUriReference.matchAsciiL(RTL_CONSTASCII_STRINGPARAM("//"), i)) + if (!externalUriReference.match("//", i)) { buf.append("//"); } @@ -152,8 +151,7 @@ OUString Translator::translateToExternal( OUString const & internalUriReference) throw (css::uno::RuntimeException) { - if (!internalUriReference.matchIgnoreAsciiCaseAsciiL( - RTL_CONSTASCII_STRINGPARAM("file://"))) + if (!internalUriReference.matchIgnoreAsciiCase("file://")) { return internalUriReference; } |