[Libreoffice-commits] .: svx/source

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Tue Sep 25 05:16:45 PDT 2012


 svx/source/svdraw/svdomedia.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit edaa6ac16800be64e86e1a022a6b4a9fff82649a
Author: Thorsten Behrens <tbehrens at suse.com>
Date:   Tue Sep 25 14:15:59 2012 +0200

    Avoid a temporary.
    
    Change-Id: I72bbb175f9bd2fa01800d108254c3385fd991cd0

diff --git a/svx/source/svdraw/svdomedia.cxx b/svx/source/svdraw/svdomedia.cxx
index a811ad3..4e42ce8 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(),


More information about the Libreoffice-commits mailing list