diff options
author | Noel <noel.grandin@collabora.co.uk> | 2021-02-17 18:24:36 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-02-18 08:16:36 +0100 |
commit | 466ec5aa2afca2d8eb3ee509bbb7753f2aec7544 (patch) | |
tree | f845450bab5990096c46c73dd84f2be6860cddbc /xmlscript | |
parent | 8a1c2a3353f2542703b6f82a14cd84c336a45991 (diff) |
loplugin:referencecasting in xmlscript
Change-Id: Ib5c1f471e0b69e4474d06b4fb55c933d701a1d9d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/111080
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlscript')
4 files changed, 8 insertions, 8 deletions
diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx index 23dc6c0a90fc..77f606728d0a 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_export.cxx @@ -1360,7 +1360,7 @@ void StyleBag::dump( Reference< xml::sax::XExtendedDocumentHandler > const & xOu for (auto const & _style : _styles) { Reference< xml::sax::XAttributeList > xAttr( _style->createElement() ); - static_cast< ElementDescriptor * >( xAttr.get() )->dump( xOut.get() ); + static_cast< ElementDescriptor * >( xAttr.get() )->dump( xOut ); } xOut->ignorableWhitespace( OUString() ); xOut->endElement( aStylesName ); @@ -1396,7 +1396,7 @@ void exportDialogModel( xOut->ignorableWhitespace( OUString() ); xOut->startElement( aWindowName, xWindow ); // dump out events - pWindow->dumpSubElements( xOut.get() ); + pWindow->dumpSubElements( xOut ); // dump out stylebag all_styles.dump( xOut ); @@ -1407,7 +1407,7 @@ void exportDialogModel( xOut->ignorableWhitespace( OUString() ); xOut->startElement( aBBoardName, xElem ); - pElem->dumpSubElements( xOut.get() ); + pElem->dumpSubElements( xOut ); // end bulletinboard xOut->ignorableWhitespace( OUString() ); xOut->endElement( aBBoardName ); diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx index 4b9251494f70..8a7ade47d61a 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx @@ -136,7 +136,7 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / // try the XEmbeddedScripts interface Reference< document::XEmbeddedScripts > xDocumentScripts( m_xModel, UNO_QUERY ); if ( xDocumentScripts.is() ) - xLibContainer.set( xDocumentScripts->getBasicLibraries().get() ); + xLibContainer = xDocumentScripts->getBasicLibraries(); if ( !xLibContainer.is() ) { diff --git a/xmlscript/source/xmllib_imexp/xmllib_export.cxx b/xmlscript/source/xmllib_imexp/xmllib_export.cxx index 828db4ee2e64..33e531ac14c5 100644 --- a/xmlscript/source/xmllib_imexp/xmllib_export.cxx +++ b/xmlscript/source/xmllib_imexp/xmllib_export.cxx @@ -79,7 +79,7 @@ exportLibraryContainer( pLibElement->addAttribute( XMLNS_LIBRARY_PREFIX ":readonly", rLib.bReadOnly ? sTrueStr : sFalseStr ); } - pLibElement->dump( xOut.get() ); + pLibElement->dump( xOut ); } xOut->ignorableWhitespace( OUString() ); @@ -123,10 +123,10 @@ exportLibrary( pElement->addAttribute( XMLNS_LIBRARY_PREFIX ":name", rElementName ); - pLibElement->addSubElement( pElement.get() ); + pLibElement->addSubElement( pElement ); } - pLibElement->dump( xOut.get() ); + pLibElement->dump( xOut ); xOut->endDocument(); } diff --git a/xmlscript/source/xmllib_imexp/xmllib_import.cxx b/xmlscript/source/xmllib_imexp/xmllib_import.cxx index 5e063430e3bb..02c46a65f239 100644 --- a/xmlscript/source/xmllib_imexp/xmllib_import.cxx +++ b/xmlscript/source/xmllib_imexp/xmllib_import.cxx @@ -33,7 +33,7 @@ namespace xmlscript Reference< xml::input::XElement > LibElementBase::getParent() { - return mxParent.get(); + return mxParent; } OUString LibElementBase::getLocalName() |