diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 20:09:55 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 07:56:54 +0200 |
commit | 8239e13dac39741003dfbce7099c3197080aafa8 (patch) | |
tree | 99a000030329e6b7363a2036cd27d0d64396f089 /sc/source/filter/oox | |
parent | 84abf28e05fc55be867028f3d3a59220ca2669f0 (diff) |
loplugin:referencecasting in sc
Change-Id: Ife30500d1ff67e06afc4d64634febfb4c161c702
Reviewed-on: https://gerrit.libreoffice.org/75976
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/source/filter/oox')
-rw-r--r-- | sc/source/filter/oox/excelfilter.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/oox/pagesettings.cxx | 2 | ||||
-rw-r--r-- | sc/source/filter/oox/richstring.cxx | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/oox/excelfilter.cxx b/sc/source/filter/oox/excelfilter.cxx index 418d45c1efdc..fcf582a5bc26 100644 --- a/sc/source/filter/oox/excelfilter.cxx +++ b/sc/source/filter/oox/excelfilter.cxx @@ -228,7 +228,7 @@ sal_Bool SAL_CALL ExcelFilter::filter( const css::uno::Sequence< css::beans::Pro Reference< XExporter > xExporter( new XclExpXmlStream( getComponentContext(), bExportVBA, isExportTemplate() ) ); - Reference< XComponent > xDocument( getModel(), UNO_QUERY ); + Reference< XComponent > xDocument = getModel(); Reference< XFilter > xFilter( xExporter, UNO_QUERY ); if ( xFilter.is() ) diff --git a/sc/source/filter/oox/pagesettings.cxx b/sc/source/filter/oox/pagesettings.cxx index 7afa498e828e..f52d4f638d74 100644 --- a/sc/source/filter/oox/pagesettings.cxx +++ b/sc/source/filter/oox/pagesettings.cxx @@ -746,7 +746,7 @@ void HeaderFooterParser::updateCurrHeight() void HeaderFooterParser::setAttributes() { - Reference<text::XTextRange> xRange( getStartPos(), UNO_QUERY ); + Reference<text::XTextRange> xRange = getStartPos(); getEndPos()->gotoRange( xRange, false ); getEndPos()->gotoEnd( true ); if( !getEndPos()->isCollapsed() ) diff --git a/sc/source/filter/oox/richstring.cxx b/sc/source/filter/oox/richstring.cxx index f1c82e04ed86..4f2e937ffc3e 100644 --- a/sc/source/filter/oox/richstring.cxx +++ b/sc/source/filter/oox/richstring.cxx @@ -89,7 +89,7 @@ void RichStringPortion::convert( const Reference< XText >& rxText, bool bReplace Reference< XTextRange > xRange; if( bReplace ) - xRange.set( rxText, UNO_QUERY ); + xRange = rxText; else xRange = rxText->getEnd(); OSL_ENSURE( xRange.is(), "RichStringPortion::convert - cannot get text range interface" ); |