summaryrefslogtreecommitdiff
path: root/slideshow
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 09:05:29 +0200
committerNoel Grandin <noel@peralex.com>2015-11-05 09:59:30 +0200
commit1c3d3ffa81d1a451b5a694cff022df3c5c94ba8e (patch)
tree08f3672567dba72161354624743c046cd2cb081b /slideshow
parentc8782b39116eee3ddc3ef0a38c6f6dde09b6ec00 (diff)
use uno::Reference::set method instead of assignment
Change-Id: Ib93d762cf523e0029bbed16e08beebd9f418ae24
Diffstat (limited to 'slideshow')
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx2
-rw-r--r--slideshow/test/demoshow.cxx3
2 files changed, 2 insertions, 3 deletions
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index 8614cfd9642e..db061ea1ba95 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -1468,7 +1468,7 @@ void SlideShowImpl::registerUserPaintPolygons( const uno::Reference< lang::XMult
Shapes->add(rPolyShape);
//Retrieve shape properties
- uno::Reference< beans::XPropertySet > aXPropSet = uno::Reference< beans::XPropertySet >( rPolyShape, uno::UNO_QUERY );
+ uno::Reference< beans::XPropertySet > aXPropSet( rPolyShape, uno::UNO_QUERY );
//Construct a sequence of points sequence
drawing::PointSequenceSequence aRetval;
//Create only one sequence for one polygon
diff --git a/slideshow/test/demoshow.cxx b/slideshow/test/demoshow.cxx
index b18efdd8c05a..9ca1a87d4c11 100644
--- a/slideshow/test/demoshow.cxx
+++ b/slideshow/test/demoshow.cxx
@@ -515,8 +515,7 @@ void DemoApp::Main()
try
{
uno::Reference< uno::XComponentContext > xCtx = ::cppu::defaultBootstrap_InitialComponentContext();
- xFactory = uno::Reference< lang::XMultiServiceFactory >( xCtx->getServiceManager(),
- uno::UNO_QUERY );
+ xFactory.set( xCtx->getServiceManager(), uno::UNO_QUERY );
if( xFactory.is() )
::comphelper::setProcessServiceFactory( xFactory );
}