diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-03 08:39:03 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-05-04 12:39:40 +0200 |
commit | 58a32075ca4f457f570af75aef368dd6c389aca7 (patch) | |
tree | e437dcbdeb248b4316cb8a9281d1543419853f6d /slideshow/source/engine/slideshowimpl.cxx | |
parent | 7d47700972d267fe7c5270c5dadd45a523a2baec (diff) |
use Any constructor instead of temporaries
Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a
Diffstat (limited to 'slideshow/source/engine/slideshowimpl.cxx')
-rw-r--r-- | slideshow/source/engine/slideshowimpl.cxx | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx index f826b4458f7a..1e8d9e667f9e 100644 --- a/slideshow/source/engine/slideshowimpl.cxx +++ b/slideshow/source/engine/slideshowimpl.cxx @@ -1494,24 +1494,20 @@ void SlideShowImpl::registerUserPaintPolygons( const uno::Reference< lang::XMult aXPropSet->setPropertyValue("PolyPolygon", aParam ); //LineStyle : SOLID by default - uno::Any aAny; drawing::LineStyle eLS; eLS = drawing::LineStyle_SOLID; - aAny <<= eLS; - aXPropSet->setPropertyValue("LineStyle", aAny ); + aXPropSet->setPropertyValue("LineStyle", uno::Any(eLS) ); //LineColor sal_uInt32 nLineColor; nLineColor = pPolyPoly->getRGBALineColor(); //Transform polygon color from RRGGBBAA to AARRGGBB - aAny <<= RGBAColor2UnoColor(nLineColor); - aXPropSet->setPropertyValue("LineColor", aAny ); + aXPropSet->setPropertyValue("LineColor", uno::Any(RGBAColor2UnoColor(nLineColor)) ); //LineWidth double fLineWidth; fLineWidth = pPolyPoly->getStrokeWidth(); - aAny <<= (sal_Int32)fLineWidth; - aXPropSet->setPropertyValue("LineWidth", aAny ); + aXPropSet->setPropertyValue("LineWidth", uno::Any((sal_Int32)fLineWidth) ); // make polygons special xLayerManager->attachShapeToLayer(rPolyShape, xDrawnInSlideshow); |