summaryrefslogtreecommitdiffstats
path: root/filter
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-02-22 17:09:35 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-02-24 08:08:00 +0100
commitad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca (patch)
tree5b11b7812b84c2647c64d1002bad7ed8a1d1754d /filter
parentReplace deprecated std::auto_ptr with boost::scoped_ptr (diff)
downloadcore-ad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca.tar.gz
core-ad73967e99235a2ba9b5a2106c5d6d0f8efaa1ca.zip
Remove unnecessary extractInterface
Change-Id: I4848bf84615274ad5732223a354fb7a6b845d9a8
Diffstat (limited to 'filter')
-rw-r--r--filter/source/msfilter/escherex.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/filter/source/msfilter/escherex.cxx b/filter/source/msfilter/escherex.cxx
index b507ed68bef8..dab46f859072 100644
--- a/filter/source/msfilter/escherex.cxx
+++ b/filter/source/msfilter/escherex.cxx
@@ -85,7 +85,6 @@
#include <com/sun/star/text/GraphicCrop.hpp>
#include <unotools/ucbstreamhelper.hxx>
#include <unotools/localfilehelper.hxx>
-#include <comphelper/extract.hxx>
#include <comphelper/string.hxx>
#include <toolkit/helper/vclunohelper.hxx>
#include <vcl/virdev.hxx>
@@ -1476,8 +1475,9 @@ sal_Bool EscherPropertyContainer::CreateGraphicProperties(
}
else if ( rSource == "Bitmap" )
{
- ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >xBitmap;
- if ( ::cppu::extractInterface( xBitmap, aAny ) )
+ ::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap >xBitmap(
+ aAny, css::uno::UNO_QUERY);
+ if (xBitmap.is())
{
::com::sun::star::uno::Reference< ::com::sun::star::awt::XBitmap > xBmp;
if ( aAny >>= xBmp )