summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
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/source/controller/chartapiwrapper/DiagramWrapper.cxx
parentaddb63fa8ac9fa1a29a00e886e7ae177b604494c (diff)
use uno::Reference::set method instead of assignment
Change-Id: I58410209f32f988f258a588364e0b037c2790211
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
index 840f79ddf37b..4bb26f973933 100644
--- a/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
+++ b/chart2/source/controller/chartapiwrapper/DiagramWrapper.cxx
@@ -933,7 +933,7 @@ Reference< drawing::XShape > SAL_CALL DiagramWrapper::getZAxisTitle()
Reference< drawing::XShape > xRet;
Reference< XAxis > xAxis( getAxis(2) );
if( xAxis.is() )
- xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
+ xRet.set( xAxis->getAxisTitle(), uno::UNO_QUERY );
return xRet;
}
@@ -981,7 +981,7 @@ Reference< drawing::XShape > SAL_CALL DiagramWrapper::getXAxisTitle()
Reference< drawing::XShape > xRet;
Reference< XAxis > xAxis( getAxis(0) );
if( xAxis.is() )
- xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
+ xRet.set( xAxis->getAxisTitle(), uno::UNO_QUERY );
return xRet;
}
@@ -1029,7 +1029,7 @@ Reference< drawing::XShape > SAL_CALL DiagramWrapper::getYAxisTitle()
Reference< drawing::XShape > xRet;
Reference< XAxis > xAxis( getAxis(1) );
if( xAxis.is() )
- xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
+ xRet.set( xAxis->getAxisTitle(), uno::UNO_QUERY );
return xRet;
}
@@ -1068,7 +1068,7 @@ Reference< drawing::XShape > SAL_CALL DiagramWrapper::getSecondXAxisTitle()
Reference< drawing::XShape > xRet;
Reference< XAxis > xAxis( getSecondaryAxis(0) );
if( xAxis.is() )
- xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
+ xRet.set( xAxis->getAxisTitle(), uno::UNO_QUERY );
return xRet;
}
@@ -1078,7 +1078,7 @@ Reference< drawing::XShape > SAL_CALL DiagramWrapper::getSecondYAxisTitle()
Reference< drawing::XShape > xRet;
Reference< XAxis > xAxis( getSecondaryAxis(1) );
if( xAxis.is() )
- xRet = Reference< drawing::XShape >( xAxis->getAxisTitle(), uno::UNO_QUERY );
+ xRet.set( xAxis->getAxisTitle(), uno::UNO_QUERY );
return xRet;
}