From edaa6ac16800be64e86e1a022a6b4a9fff82649a Mon Sep 17 00:00:00 2001 From: Thorsten Behrens Date: Tue, 25 Sep 2012 14:15:59 +0200 Subject: Avoid a temporary. Change-Id: I72bbb175f9bd2fa01800d108254c3385fd991cd0 --- svx/source/svdraw/svdomedia.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'svx') diff --git a/svx/source/svdraw/svdomedia.cxx b/svx/source/svdraw/svdomedia.cxx index a811ad319250..4e42ce8ed612 100644 --- a/svx/source/svdraw/svdomedia.cxx +++ b/svx/source/svdraw/svdomedia.cxx @@ -363,7 +363,7 @@ void SdrMediaObj::mediaPropertiesChanged( const ::avmedia::MediaItem& rNewProper if( ( AVMEDIA_SETMASK_URL & nMaskSet ) && ( rNewProperties.getURL() != getURL() )) { - m_pImpl->m_xCachedSnapshot = uno::Reference< graphic::XGraphic >(); + m_pImpl->m_xCachedSnapshot.clear(); ::rtl::OUString const url(rNewProperties.getURL()); if ((0 == rtl_ustr_ascii_shortenedCompareIgnoreAsciiCase_WithLength( url.getStr(), url.getLength(), -- cgit v1.2.3