diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-03-01 19:16:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-03-01 19:28:14 +0100 |
commit | 72111620811bb496004ccbf92ec9ea5c9e9e4ea9 (patch) | |
tree | 1828783d80d46ba3f67ca4063abb331e6c134c69 /comphelper | |
parent | 2f527738ea4f8e93acafdd7f0ae06de1678cfdd8 (diff) |
Clean up uses of rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength
Change-Id: Ie37614dac882bfe05f8ce595ae6b20326dce872e
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/storagehelper.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx index 0057cd93dbd5..0c60a7c54bd1 100644 --- a/comphelper/source/misc/storagehelper.cxx +++ b/comphelper/source/misc/storagehelper.cxx @@ -574,12 +574,9 @@ uno::Reference< io::XStream > OStorageHelper::GetStreamAtPackageURL( const OUString& rURL, sal_uInt32 const nOpenMode, LifecycleProxy & rNastiness) { - static char const s_PkgScheme[] = "vnd.sun.star.Package:"; - if (0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( - rURL.getStr(), rURL.getLength(), - s_PkgScheme, SAL_N_ELEMENTS(s_PkgScheme) - 1)) + OUString path; + if (rURL.startsWithIgnoreAsciiCase("vnd.sun.star.Package:", &path)) { - OUString const path(rURL.copy(SAL_N_ELEMENTS(s_PkgScheme)-1)); return GetStreamAtPath(xParentStorage, path, nOpenMode, rNastiness); } return 0; |