diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 09:50:11 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-19 11:31:51 +0200 |
commit | 836c40904f4424a5b7ae708171a7aab53141761a (patch) | |
tree | 5f84c7b9d57aface755ef6f4b11ccc1deb1da9c6 /chart2/source/model/filter | |
parent | 4959b71cbc91dbe2c454d1d7bf2092c01c4f0cae (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/model/filter')
-rw-r--r-- | chart2/source/model/filter/XMLFilter.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/chart2/source/model/filter/XMLFilter.cxx b/chart2/source/model/filter/XMLFilter.cxx index c2ec355441b7..ebca2a63bc86 100644 --- a/chart2/source/model/filter/XMLFilter.cxx +++ b/chart2/source/model/filter/XMLFilter.cxx @@ -414,9 +414,8 @@ ErrCode XMLFilter::impl_ImportStream( { ErrCode nWarning = ERRCODE_SFX_GENERAL; - Reference< container::XNameAccess > xNameAcc( xStorage, uno::UNO_QUERY ); - if( ! (xNameAcc.is() && - xNameAcc->hasByName( rStreamName ))) + if( ! (xStorage.is() && + xStorage->hasByName( rStreamName ))) return ERRCODE_NONE; if( xImportInfo.is() ) @@ -553,7 +552,7 @@ ErrCode XMLFilter::impl_Export( if( ! xStorage.is()) return ERRCODE_SFX_GENERAL; - uno::Reference< xml::sax::XDocumentHandler> xDocHandler( xSaxWriter, uno::UNO_QUERY ); + uno::Reference< xml::sax::XDocumentHandler> xDocHandler = xSaxWriter; if ( !m_sDocumentHandler.isEmpty() ) { |