From e8be170586023dc9b47bdb7c1637f34fdeec7408 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 20 Nov 2013 09:35:23 +0100 Subject: String clean-up Change-Id: I56c397d4cd0ad6c328d660f50189ab5f4b5cfca6 --- svx/source/svdraw/svdomedia.cxx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'svx') 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 != -- cgit