diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-22 17:09:35 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-24 08:08:00 +0100 |
commit | ad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca (patch) | |
tree | 5b11b7812b84c2647c64d1002bad7ed8a1d1754d /sd | |
parent | Replace deprecated std::auto_ptr with boost::scoped_ptr (diff) | |
download | core-ad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca.tar.gz core-ad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca.zip |
Remove unnecessary extractInterface
Change-Id: I4848bf84615274ad5732223a354fb7a6b845d9a8
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/filter/eppt/pptx-epptbase.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sd/source/filter/eppt/pptx-epptbase.cxx b/sd/source/filter/eppt/pptx-epptbase.cxx index afa63d3c8bc0..04513c21d1ab 100644 --- a/sd/source/filter/eppt/pptx-epptbase.cxx +++ b/sd/source/filter/eppt/pptx-epptbase.cxx @@ -21,7 +21,6 @@ #include "eppt.hxx" #include "epptdef.hxx" -#include <comphelper/extract.hxx> #include <tools/globname.hxx> #include <tools/datetime.hxx> #include <tools/poly.hxx> @@ -618,16 +617,18 @@ sal_Bool PPTWriterBase::GetStyleSheets() if ( aXNameAccess->hasByName( aFamily ) ) { Any aAny( aXNameAccess->getByName( aFamily ) ); - if( aAny.getValue() && ::cppu::extractInterface( xNameAccess, aAny ) ) + xNameAccess.set(aAny, css::uno::UNO_QUERY); + if( xNameAccess.is() ) { Reference< XNameAccess > aXFamily; if ( aAny >>= aXFamily ) { if ( aXFamily->hasByName( aStyle ) ) { - Reference< XStyle > xStyle; aAny = aXFamily->getByName( aStyle ); - if( aAny.getValue() && ::cppu::extractInterface( xStyle, aAny ) ) + Reference< XStyle > xStyle( + aAny, css::uno::UNO_QUERY); + if( xStyle.is() ) { Reference< XStyle > aXStyle; aAny >>= aXStyle; |