summaryrefslogtreecommitdiffstats
path: root/slideshow
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-05-03 08:39:03 +0200
committerNoel Grandin <noel@peralex.com>2016-05-04 12:39:40 +0200
commit58a32075ca4f457f570af75aef368dd6c389aca7 (patch)
treee437dcbdeb248b4316cb8a9281d1543419853f6d /slideshow
parentUnderline should be a split button (diff)
downloadcore-58a32075ca4f457f570af75aef368dd6c389aca7.tar.gz
core-58a32075ca4f457f570af75aef368dd6c389aca7.zip
use Any constructor instead of temporaries
Change-Id: Iffb82a2cee1a28d89eeea2b905aaa14086ee475a
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx10
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);