summaryrefslogtreecommitdiff
path: root/chart2/source/controller/dialogs/RangeSelectionHelper.cxx
diff options
context:
space:
mode:
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 );