summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-11-20 09:35:23 +0100
committerStephan Bergmann <sbergman@redhat.com>2013-11-20 09:58:42 +0100
commite8be170586023dc9b47bdb7c1637f34fdeec7408 (patch)
tree5ee7f9cdae982e23e967854396f6c6171319ac1a /svx
parentb7a71d4f69e6e9e4b739e5d408291b62e0d961bc (diff)
String clean-up
Change-Id: I56c397d4cd0ad6c328d660f50189ab5f4b5cfca6
Diffstat (limited to 'svx')
-rw-r--r--svx/source/svdraw/svdomedia.cxx6
1 files changed, 1 insertions, 5 deletions
diff --git a/svx/source/svdraw/svdomedia.cxx b/svx/source/svdraw/svdomedia.cxx
index f9d838b5cca2..292822554b64 100644
--- a/svx/source/svdraw/svdomedia.cxx
+++ b/svx/source/svdraw/svdomedia.cxx
@@ -351,8 +351,6 @@ static bool lcl_HandlePackageURL(
return true;
}
-static char const s_PkgScheme[] = "vnd.sun.star.Package:";
-
void SdrMediaObj::mediaPropertiesChanged( const ::avmedia::MediaItem& rNewProperties )
{
bool bBroadcastChanged = false;
@@ -364,9 +362,7 @@ void SdrMediaObj::mediaPropertiesChanged( const ::avmedia::MediaItem& rNewProper
{
m_pImpl->m_xCachedSnapshot.clear();
OUString const url(rNewProperties.getURL());
- if ((0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength(
- url.getStr(), url.getLength(),
- s_PkgScheme, SAL_N_ELEMENTS(s_PkgScheme) - 1)))
+ if (url.startsWithIgnoreAsciiCase("vnd.sun.star.Package:"))
{
if ( !m_pImpl->m_pTempFile
|| (m_pImpl->m_pTempFile->m_TempFileURL !=