diff options
author | Noel Grandin <noel@peralex.com> | 2015-12-21 10:27:05 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-12-21 12:45:49 +0200 |
commit | a218039d2a1176a5c788498fd8b50efe9b195b54 (patch) | |
tree | 58f2c4f10644622073550be6d903f823eca091bd /xmlscript/source | |
parent | d8ff907197037045fd0cb173e341f515968b65b1 (diff) |
loplugin:unusedfields in xmlscript,xmlsecurity
Change-Id: I5239766f2105fb1a7823215a4ffe48891e000c3d
Diffstat (limited to 'xmlscript/source')
-rw-r--r-- | xmlscript/source/xmldlg_imexp/imp_share.hxx | 1 | ||||
-rw-r--r-- | xmlscript/source/xmlflat_imexp/xmlbas_export.cxx | 21 | ||||
-rw-r--r-- | xmlscript/source/xmlflat_imexp/xmlbas_export.hxx | 10 |
3 files changed, 13 insertions, 19 deletions
diff --git a/xmlscript/source/xmldlg_imexp/imp_share.hxx b/xmlscript/source/xmldlg_imexp/imp_share.hxx index 5d4e2f12a13c..2c176c906e95 100644 --- a/xmlscript/source/xmldlg_imexp/imp_share.hxx +++ b/xmlscript/source/xmldlg_imexp/imp_share.hxx @@ -124,7 +124,6 @@ struct DialogImport css::uno::Reference< css::container::XNameContainer > _xDialogModel; css::uno::Reference< css::lang::XMultiServiceFactory > _xDialogModelFactory; css::uno::Reference< css::frame::XModel > _xDoc; - css::uno::Reference< css::script::XLibraryContainer > _xScriptLibraryContainer; sal_Int32 XMLNS_DIALOGS_UID, XMLNS_SCRIPT_UID; diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx index 99b1b8001fa1..4f6c49ef28c9 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.cxx @@ -65,9 +65,8 @@ namespace xmlscript // XMLBasicExporterBase - XMLBasicExporterBase::XMLBasicExporterBase( const Reference< XComponentContext >& rxContext, bool bOasis ) - :m_xContext( rxContext ) - ,m_bOasis( bOasis ) + XMLBasicExporterBase::XMLBasicExporterBase( bool bOasis ) + :m_bOasis( bOasis ) { } @@ -364,8 +363,8 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / // XMLBasicExporter - XMLBasicExporter::XMLBasicExporter( const Reference< XComponentContext >& rxContext ) - :XMLBasicExporterBase( rxContext, false ) + XMLBasicExporter::XMLBasicExporter() + :XMLBasicExporterBase( false ) { } @@ -387,8 +386,8 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / // XMLOasisBasicExporter - XMLOasisBasicExporter::XMLOasisBasicExporter( const Reference< XComponentContext >& rxContext ) - :XMLBasicExporterBase( rxContext, true ) + XMLOasisBasicExporter::XMLOasisBasicExporter() + :XMLBasicExporterBase( true ) { } @@ -411,15 +410,15 @@ sal_Bool XMLBasicExporterBase::filter( const Sequence< beans::PropertyValue >& / // component operations Reference< XInterface > SAL_CALL create_XMLBasicExporter( - Reference< XComponentContext > const & xContext ) + Reference< XComponentContext > const & ) { - return static_cast< lang::XTypeProvider * >( new XMLBasicExporter( xContext ) ); + return static_cast< lang::XTypeProvider * >( new XMLBasicExporter ); } Reference< XInterface > SAL_CALL create_XMLOasisBasicExporter( - Reference< XComponentContext > const & xContext ) + Reference< XComponentContext > const & ) { - return static_cast< lang::XTypeProvider * >( new XMLOasisBasicExporter( xContext ) ); + return static_cast< lang::XTypeProvider * >( new XMLOasisBasicExporter ); } } // namespace xmlscript diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.hxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.hxx index 10746ea24b59..2747599da2a3 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_export.hxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.hxx @@ -43,14 +43,12 @@ namespace xmlscript { private: ::osl::Mutex m_aMutex; - css::uno::Reference< css::uno::XComponentContext > m_xContext; css::uno::Reference< css::xml::sax::XDocumentHandler > m_xHandler; css::uno::Reference< css::frame::XModel > m_xModel; bool m_bOasis; public: - XMLBasicExporterBase( - const css::uno::Reference< css::uno::XComponentContext >& rxContext, bool bOasis ); + XMLBasicExporterBase(bool bOasis ); virtual ~XMLBasicExporterBase(); // XServiceInfo @@ -77,8 +75,7 @@ namespace xmlscript class XMLBasicExporter : public XMLBasicExporterBase { public: - explicit XMLBasicExporter( - const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + explicit XMLBasicExporter(); virtual ~XMLBasicExporter(); // XServiceInfo @@ -93,8 +90,7 @@ namespace xmlscript class XMLOasisBasicExporter : public XMLBasicExporterBase { public: - explicit XMLOasisBasicExporter( - const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + explicit XMLOasisBasicExporter(); virtual ~XMLOasisBasicExporter(); // XServiceInfo |