summaryrefslogtreecommitdiff
path: root/xmloff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-03-01 19:16:40 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-03-01 19:28:14 +0100
commit72111620811bb496004ccbf92ec9ea5c9e9e4ea9 (patch)
tree1828783d80d46ba3f67ca4063abb331e6c134c69 /xmloff
parent2f527738ea4f8e93acafdd7f0ae06de1678cfdd8 (diff)
Clean up uses of rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength
Change-Id: Ie37614dac882bfe05f8ce595ae6b20326dce872e
Diffstat (limited to 'xmloff')
-rw-r--r--xmloff/source/draw/shapeexport.cxx10
1 files changed, 2 insertions, 8 deletions
diff --git a/xmloff/source/draw/shapeexport.cxx b/xmloff/source/draw/shapeexport.cxx
index dab81a0c6791..9f119acdbb5c 100644
--- a/xmloff/source/draw/shapeexport.cxx
+++ b/xmloff/source/draw/shapeexport.cxx
@@ -3126,16 +3126,13 @@ static void lcl_CopyStream(
proxy.commitStorages();
}
-static char const s_PkgScheme[] = "vnd.sun.star.Package:";
-
static OUString
lcl_StoreMediaAndGetURL(SvXMLExport & rExport,
uno::Reference<beans::XPropertySet> const& xPropSet,
OUString const& rURL)
{
- if (0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
- rURL.getStr(), rURL.getLength(),
- s_PkgScheme, SAL_N_ELEMENTS(s_PkgScheme) - 1))
+ OUString urlPath;
+ if (rURL.startsWithIgnoreAsciiCase("vnd.sun.star.Package:", &urlPath))
{
try // video is embedded
{
@@ -3152,9 +3149,6 @@ lcl_StoreMediaAndGetURL(SvXMLExport & rExport,
return OUString();
}
- OUString const urlPath(
- rURL.copy(SAL_N_ELEMENTS(s_PkgScheme)-1));
-
lcl_CopyStream(xInStream, xTarget, rURL);
return urlPath;