diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 17:52:18 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-12-12 17:52:18 +0100 |
commit | b733f5c4f4b3f92f5ba0f36575093bb3bc7fc7ec (patch) | |
tree | 54dfb0a093532b2145832f3bb712f947be6fe1dd /framework/source/jobs | |
parent | 4fbdcb8c051ce9a3a32fc93a9e5df0a76ea63595 (diff) |
framework: Use appropriate OUString functions on string constants
Change-Id: I72bb5ff2ab8a55061072fde567fcc1c4a8e20a2f
Diffstat (limited to 'framework/source/jobs')
-rw-r--r-- | framework/source/jobs/joburl.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/framework/source/jobs/joburl.cxx b/framework/source/jobs/joburl.cxx index 2dacc370893b..3078d0386e31 100644 --- a/framework/source/jobs/joburl.cxx +++ b/framework/source/jobs/joburl.cxx @@ -17,6 +17,10 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <cstring> + #include <jobs/joburl.hxx> #include <general.h> @@ -47,9 +51,9 @@ JobURL::JobURL( /*IN*/ const OUString& sURL ) // syntax: vnd.sun.star.job:{[event=<name>],[alias=<name>],[service=<name>]} // check for "vnd.sun.star.job:" - if (sURL.matchIgnoreAsciiCaseAsciiL(JOBURL_PROTOCOL_STR,JOBURL_PROTOCOL_LEN,0)) + if (sURL.startsWithIgnoreAsciiCase("vnd.sun.star.job:")) { - sal_Int32 t = JOBURL_PROTOCOL_LEN; + sal_Int32 t = std::strlen("vnd.sun.star.job:"); do { // separate all token of "{[event=<name>],[alias=<name>],[service=<name>]}" |