summaryrefslogtreecommitdiff
path: root/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.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 /sd/source/ui/accessibility/AccessiblePresentationGraphicShape.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 'sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx')
-rw-r--r--sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx b/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx
index 89fef0c4b934..909f13a156b0 100644
--- a/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx
+++ b/sd/source/ui/accessibility/AccessiblePresentationGraphicShape.cxx
@@ -20,6 +20,7 @@
#include <AccessiblePresentationGraphicShape.hxx>
#include <com/sun/star/accessibility/AccessibleRole.hpp>
#include <com/sun/star/drawing/XShapeDescriptor.hpp>
+#include <com/sun/star/drawing/XShape.hpp>
#include <SdShapeTypes.hxx>
@@ -65,9 +66,8 @@ OUString
break;
default:
sName = "UnknownAccessibleImpressShape";
- uno::Reference<drawing::XShapeDescriptor> xDescriptor (mxShape, uno::UNO_QUERY);
- if (xDescriptor.is())
- sName += ": " + xDescriptor->getShapeType();
+ if (mxShape.is())
+ sName += ": " + mxShape->getShapeType();
}
return sName;