summaryrefslogtreecommitdiffstats
path: root/chart2/workbench
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-10-29 15:48:45 +0200
committerNoel Grandin <noel@peralex.com>2015-10-30 08:10:22 +0200
commit065c8b48a604b70140862d0d02deb584626d6994 (patch)
tree578c07b470b8ec9e5908d224c2fbf33cadda5adf /chart2/workbench
parentconvert Sequence<XInterface> constructions to use initializer lists (diff)
downloadcore-065c8b48a604b70140862d0d02deb584626d6994.tar.gz
core-065c8b48a604b70140862d0d02deb584626d6994.zip
use uno::Reference::set method instead of assignment
Change-Id: I58410209f32f988f258a588364e0b037c2790211
Diffstat (limited to 'chart2/workbench')
-rw-r--r--chart2/workbench/addin/sampleaddin.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/workbench/addin/sampleaddin.cxx b/chart2/workbench/addin/sampleaddin.cxx
index 1c964f7cf67e..6bfb8b019c80 100644
--- a/chart2/workbench/addin/sampleaddin.cxx
+++ b/chart2/workbench/addin/sampleaddin.cxx
@@ -263,7 +263,7 @@ void SAL_CALL SampleAddIn::refresh() throw( uno::RuntimeException )
// create line first time
if( ! mxMyRedLine.is())
{
- mxMyRedLine = uno::Reference< drawing::XShape >(
+ mxMyRedLine.set(
xFactory->createInstance( "com.sun.star.drawing.LineShape" ),
uno::UNO_QUERY );
xPage->add( mxMyRedLine );
@@ -287,7 +287,7 @@ void SAL_CALL SampleAddIn::refresh() throw( uno::RuntimeException )
// create text object first time
if( ! mxMyText.is())
{
- mxMyText = uno::Reference< drawing::XShape >(
+ mxMyText.set(
xFactory->createInstance( "com.sun.star.drawing.TextShape" ),
uno::UNO_QUERY );
xPage->add( mxMyText );