summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/RangeSelectionHelper.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 09:50:11 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 11:31:51 +0200
commit836c40904f4424a5b7ae708171a7aab53141761a (patch)
tree5f84c7b9d57aface755ef6f4b11ccc1deb1da9c6 /chart2/source/controller/dialogs/RangeSelectionHelper.cxx
parent4959b71cbc91dbe2c454d1d7bf2092c01c4f0cae (diff)
loplugin:referencecasting in canvas..chart2
Change-Id: I3a3671b5c44d1a7e5ca320d3d76dd5d902382cbc Reviewed-on: https://gerrit.libreoffice.org/75935 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'chart2/source/controller/dialogs/RangeSelectionHelper.cxx')
-rw-r--r--chart2/source/controller/dialogs/RangeSelectionHelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/controller/dialogs/RangeSelectionHelper.cxx b/chart2/source/controller/dialogs/RangeSelectionHelper.cxx
index d06dcf894ee5..775f80535f32 100644
--- a/chart2/source/controller/dialogs/RangeSelectionHelper.cxx
+++ b/chart2/source/controller/dialogs/RangeSelectionHelper.cxx
@@ -99,7 +99,7 @@ bool RangeSelectionHelper::chooseRange(
const OUString & aUIString,
RangeSelectionListenerParent & rListenerParent )
{
- ControllerLockGuardUNO aGuard( Reference< frame::XModel >(m_xChartDocument, uno::UNO_QUERY ) );
+ ControllerLockGuardUNO aGuard( m_xChartDocument );
bool bResult = true;
raiseRangeSelectionDocument();
@@ -127,7 +127,7 @@ bool RangeSelectionHelper::chooseRange(
if( m_xRangeSelectionListener.is() )
stopRangeListening();
m_xRangeSelectionListener.set( Reference< sheet::XRangeSelectionListener >(
- new RangeSelectionListener( rListenerParent, aCurrentRange, Reference< frame::XModel >(m_xChartDocument, uno::UNO_QUERY ) )));
+ new RangeSelectionListener( rListenerParent, aCurrentRange, m_xChartDocument )));
xRangeSel->addRangeSelectionListener( m_xRangeSelectionListener );
xRangeSel->startRangeSelection( aArgs );