diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-20 18:27:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-07-21 08:51:00 +0200 |
commit | 3284309f19bc76f1778988c5314a795a95620e71 (patch) | |
tree | f8c4cee5861bccdfc4b86bc080bf988d3fe78c9f /xmloff/source/script | |
parent | f9b5657c4cff29f4a0cd65d2789e091f1297a152 (diff) |
loplugin:referencecasting in xmloff
Change-Id: Iac3d56511aacec73bc38f57890c44145a4c13b85
Reviewed-on: https://gerrit.libreoffice.org/76034
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmloff/source/script')
-rw-r--r-- | xmloff/source/script/XMLEventExport.cxx | 5 | ||||
-rw-r--r-- | xmloff/source/script/xmlbasici.cxx | 3 |
2 files changed, 3 insertions, 5 deletions
diff --git a/xmloff/source/script/XMLEventExport.cxx b/xmloff/source/script/XMLEventExport.cxx index f6d5b3b07912..02e720b643db 100644 --- a/xmloff/source/script/XMLEventExport.cxx +++ b/xmloff/source/script/XMLEventExport.cxx @@ -85,8 +85,7 @@ void XMLEventExport::Export( Reference<XEventsSupplier> const & rSupplier, { if (rSupplier.is()) { - Reference<XNameAccess> xAccess(rSupplier->getEvents(), UNO_QUERY); - Export(xAccess, bWhitespace); + Export(rSupplier->getEvents(), bWhitespace); } // else: no supplier, no export -> ignore! } @@ -94,7 +93,7 @@ void XMLEventExport::Export( Reference<XEventsSupplier> const & rSupplier, void XMLEventExport::Export( Reference<XNameReplace> const & rReplace, bool bWhitespace) { - Reference<XNameAccess> xAccess(rReplace, UNO_QUERY); + Reference<XNameAccess> xAccess(rReplace); Export(xAccess, bWhitespace); } diff --git a/xmloff/source/script/xmlbasici.cxx b/xmloff/source/script/xmlbasici.cxx index 0a7e5163e5d0..da38c060b7a3 100644 --- a/xmloff/source/script/xmlbasici.cxx +++ b/xmloff/source/script/xmlbasici.cxx @@ -36,8 +36,7 @@ XMLBasicImportContext::XMLBasicImportContext( SvXMLImport& rImport, sal_uInt16 n Reference< uno::XComponentContext > xContext = GetImport().GetComponentContext(); m_xHandler = document::XMLOasisBasicImporter::create( xContext ); - Reference< lang::XComponent > xComp( m_xModel, UNO_QUERY ); - m_xHandler->setTargetDocument( xComp ); + m_xHandler->setTargetDocument( m_xModel ); } XMLBasicImportContext::~XMLBasicImportContext() |