From adc295a1b2e1f2ed43e7eb587fc89d7229e0f122 Mon Sep 17 00:00:00 2001 From: Arkadiy Illarionov Date: Sat, 15 Jun 2019 21:46:13 +0300 Subject: Add comphelper::getUnoTunnelImplementation template Use it instead of classname::getImplementation from UNO3_GETIMPLEMENTATION_* Change-Id: Ifcc8cfcd6369c576250008c76ce31ba79ea3a596 Reviewed-on: https://gerrit.libreoffice.org/74107 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sc/source/ui/vba/vbarange.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'sc/source/ui/vba/vbarange.cxx') diff --git a/sc/source/ui/vba/vbarange.cxx b/sc/source/ui/vba/vbarange.cxx index dfe74c5f694e..1836cbdd5088 100644 --- a/sc/source/ui/vba/vbarange.cxx +++ b/sc/source/ui/vba/vbarange.cxx @@ -258,9 +258,9 @@ static uno::Reference< excel::XRange > lcl_makeXRangeFromSheetCellRanges( const ScCellRangesBase* ScVbaRange::getCellRangesBase() { if( mxRanges.is() ) - return ScCellRangesBase::getImplementation( mxRanges ); + return comphelper::getUnoTunnelImplementation( mxRanges ); if( mxRange.is() ) - return ScCellRangesBase::getImplementation( mxRange ); + return comphelper::getUnoTunnelImplementation( mxRange ); throw uno::RuntimeException("General Error creating range - Unknown" ); } @@ -391,7 +391,7 @@ ScVbaRangeAreas::createCollectionObject( const uno::Any& aSource ) static ScDocShell* getDocShellFromIf( const uno::Reference< uno::XInterface >& xIf ) { - ScCellRangesBase* pUno = ScCellRangesBase::getImplementation( xIf ); + ScCellRangesBase* pUno = comphelper::getUnoTunnelImplementation( xIf ); if ( !pUno ) throw uno::RuntimeException("Failed to access underlying uno range object" ); return pUno->GetDocShell(); @@ -536,7 +536,7 @@ public: OUString getNumberFormatString() { uno::Reference< uno::XInterface > xIf( mxRangeProps, uno::UNO_QUERY_THROW ); - ScCellRangesBase* pUnoCellRange = ScCellRangesBase::getImplementation( xIf ); + ScCellRangesBase* pUnoCellRange = comphelper::getUnoTunnelImplementation( xIf ); if ( pUnoCellRange ) { -- cgit