diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 13:29:51 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-21 08:49:01 +0200 |
commit | 17db60eb46b31b6e4b7e664b01e6f7bb6a3016ab (patch) | |
tree | a2f64eca956aa2daf0e74de31bc2d419f769f2c0 /slideshow/source/engine/slideshowimpl.cxx | |
parent | 8a3912c8eb25d1acacbc0a18355f2ca75d418908 (diff) |
loplugin:referencecasting in slideshow..svtools
Change-Id: Id0f0332d5d66c0bce309643bf42059b9bdc7d448
Reviewed-on: https://gerrit.libreoffice.org/75997
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'slideshow/source/engine/slideshowimpl.cxx')
-rw-r--r-- | slideshow/source/engine/slideshowimpl.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index e1ba69e398d9..b3d21f3fff3a 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -1410,20 +1410,19 @@ void SlideShowImpl::registerUserPaintPolygons( const uno::Reference< lang::XMult uno::Reference< drawing::XLayerManager > xLayerManager(xNameAccess, uno::UNO_QUERY); // create a layer and set its properties uno::Reference< drawing::XLayer > xDrawnInSlideshow = xLayerManager->insertNewByIndex(xLayerManager->getCount()); - uno::Reference< beans::XPropertySet > xLayerPropSet(xDrawnInSlideshow, uno::UNO_QUERY); //Layer Name which enables to catch annotations OUString layerName = "DrawnInSlideshow"; uno::Any aPropLayer; aPropLayer <<= layerName; - xLayerPropSet->setPropertyValue("Name", aPropLayer); + xDrawnInSlideshow->setPropertyValue("Name", aPropLayer); aPropLayer <<= true; - xLayerPropSet->setPropertyValue("IsVisible", aPropLayer); + xDrawnInSlideshow->setPropertyValue("IsVisible", aPropLayer); aPropLayer <<= false; - xLayerPropSet->setPropertyValue("IsLocked", aPropLayer); + xDrawnInSlideshow->setPropertyValue("IsLocked", aPropLayer); //Register polygons for each slide for( const auto& rPoly : maPolygons ) |