summaryrefslogtreecommitdiff
path: root/sc/source/core/data/drwlayer.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2020-02-23 21:06:10 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-02-25 08:37:17 +0100
commitb7a1e92a27bc26f222526eb50ab80c0e6966be7a (patch)
tree4f3825cc2f483e4576d1e3849a759b73fdc969f9 /sc/source/core/data/drwlayer.cxx
parente6b9bc3f2ecf0fb7fde5b02f9d750ccbe022f4c1 (diff)
loplugin:referencecasting
getting --enable-pch=normal working with clang means that the plugins now have a better view on some stuff, so trigger more warnings Change-Id: I83ca010c0ef07c8106068362bb50a354e3cf7dae Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89312 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/core/data/drwlayer.cxx')
-rw-r--r--sc/source/core/data/drwlayer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/core/data/drwlayer.cxx b/sc/source/core/data/drwlayer.cxx
index e9deb74010bc..48a0dacbac4a 100644
--- a/sc/source/core/data/drwlayer.cxx
+++ b/sc/source/core/data/drwlayer.cxx
@@ -21,6 +21,7 @@
#include <com/sun/star/chart/XChartDocument.hpp>
#include <com/sun/star/chart2/XChartDocument.hpp>
#include <com/sun/star/embed/XClassifiedObject.hpp>
+#include <com/sun/star/embed/XEmbeddedObject.hpp>
#include <scitems.hxx>
#include <editeng/eeitem.hxx>
@@ -1731,7 +1732,7 @@ void ScDrawLayer::CopyFromClip( ScDrawLayer* pClipModel, SCTAB nSourceTab, const
if ( pNewObject->GetObjIdentifier() == OBJ_OLE2 )
{
uno::Reference< embed::XEmbeddedObject > xIPObj = static_cast<SdrOle2Obj*>(pNewObject)->GetObjRef();
- uno::Reference< embed::XClassifiedObject > xClassified( xIPObj, uno::UNO_QUERY );
+ uno::Reference< embed::XClassifiedObject > xClassified = xIPObj;
SvGlobalName aObjectClassName;
if ( xClassified.is() )
{