diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-23 16:14:49 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-24 08:32:37 +0200 |
commit | f08a06052bfe38c2bc0a23bd2c56ff9c1cb5536c (patch) | |
tree | 5cd66bffbb0bd630d11d95becd2d3b68939e7769 /xmlscript | |
parent | cec5271db3563bf393e1afe40bd5a368eeaf0b88 (diff) |
loplugin:unusedfields,can-be-const in xmlscript
Change-Id: Ibd733b822bb2eee9de6319b5ea9e4d8dd3641cdc
Reviewed-on: https://gerrit.libreoffice.org/57850
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlscript')
-rw-r--r-- | xmlscript/source/xml_helper/xml_impctx.cxx | 6 | ||||
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx | 2 | ||||
-rw-r--r-- | xmlscript/source/xmlflat_imexp/xmlbas_export.hxx | 2 | ||||
-rw-r--r-- | xmlscript/source/xmlflat_imexp/xmlbas_import.hxx | 14 | ||||
-rw-r--r-- | xmlscript/source/xmllib_imexp/imp_share.hxx | 4 | ||||
-rw-r--r-- | xmlscript/source/xmlmod_imexp/imp_share.hxx | 2 |
6 files changed, 15 insertions, 15 deletions
diff --git a/xmlscript/source/xml_helper/xml_impctx.cxx b/xmlscript/source/xml_helper/xml_impctx.cxx index 48b3153228c6..3ebc809d1cfe 100644 --- a/xmlscript/source/xml_helper/xml_impctx.cxx +++ b/xmlscript/source/xml_helper/xml_impctx.cxx @@ -105,8 +105,8 @@ class DocumentHandlerImpl : t_OUString2LongMap m_URI2Uid; sal_Int32 m_uid_count; - OUString m_sXMLNS_PREFIX_UNKNOWN; - OUString m_sXMLNS; + OUString const m_sXMLNS_PREFIX_UNKNOWN; + OUString const m_sXMLNS; sal_Int32 m_nLastURI_lookup; OUString m_aLastURI_lookup; @@ -301,7 +301,7 @@ inline void DocumentHandlerImpl::getElementName( class ExtendedAttributes : public ::cppu::WeakImplHelper< xml::input::XAttributes > { - sal_Int32 m_nAttributes; + sal_Int32 const m_nAttributes; std::unique_ptr<sal_Int32[]> m_pUids; std::unique_ptr<OUString[]> m_pLocalNames; std::unique_ptr<OUString[]> m_pQNames; diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx index d0daa3746c65..9daedf961b63 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx @@ -36,7 +36,7 @@ namespace xmlscript class InputStreamProvider : public ::cppu::WeakImplHelper< io::XInputStreamProvider > { - std::vector<sal_Int8> _bytes; + std::vector<sal_Int8> const _bytes; public: explicit InputStreamProvider( std::vector<sal_Int8> const & rBytes ) diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_export.hxx b/xmlscript/source/xmlflat_imexp/xmlbas_export.hxx index 6d44d6255451..e710236413a7 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_export.hxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_export.hxx @@ -45,7 +45,7 @@ namespace xmlscript ::osl::Mutex m_aMutex; css::uno::Reference< css::xml::sax::XDocumentHandler > m_xHandler; css::uno::Reference< css::frame::XModel > m_xModel; - bool m_bOasis; + bool const m_bOasis; public: explicit XMLBasicExporterBase(bool bOasis); diff --git a/xmlscript/source/xmlflat_imexp/xmlbas_import.hxx b/xmlscript/source/xmlflat_imexp/xmlbas_import.hxx index 247cf835eb3c..bb8737f5cff9 100644 --- a/xmlscript/source/xmlflat_imexp/xmlbas_import.hxx +++ b/xmlscript/source/xmlflat_imexp/xmlbas_import.hxx @@ -47,7 +47,7 @@ namespace xmlscript rtl::Reference<BasicImport> m_xImport; private: rtl::Reference<BasicElementBase> m_xParent; - OUString m_aLocalName; + OUString const m_aLocalName; css::uno::Reference< css::xml::input::XAttributes > m_xAttributes; protected: @@ -104,8 +104,8 @@ namespace xmlscript private: css::uno::Reference< css::script::XLibraryContainer2 > m_xLibContainer; css::uno::Reference< css::container::XNameContainer > m_xLib; - OUString m_aLibName; - bool m_bReadOnly; + OUString const m_aLibName; + bool const m_bReadOnly; public: BasicEmbeddedLibraryElement( const OUString& rLocalName, @@ -127,7 +127,7 @@ namespace xmlscript { private: css::uno::Reference< css::container::XNameContainer > m_xLib; - OUString m_aName; + OUString const m_aName; public: BasicModuleElement( const OUString& rLocalName, @@ -149,7 +149,7 @@ namespace xmlscript { private: css::uno::Reference< css::container::XNameContainer > m_xLib; - OUString m_aName; + OUString const m_aName; OUStringBuffer m_aBuffer; public: @@ -180,7 +180,7 @@ namespace xmlscript sal_Int32 XMLNS_UID; sal_Int32 XMLNS_XLINK_UID; css::uno::Reference< css::frame::XModel > m_xModel; - bool m_bOasis; + bool const m_bOasis; public: BasicImport( const css::uno::Reference< css::frame::XModel >& rxModel, bool bOasis ); @@ -212,7 +212,7 @@ namespace xmlscript 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; + bool const m_bOasis; public: XMLBasicImporterBase( diff --git a/xmlscript/source/xmllib_imexp/imp_share.hxx b/xmlscript/source/xmllib_imexp/imp_share.hxx index 636c10c3a370..ab7570cd34c7 100644 --- a/xmlscript/source/xmllib_imexp/imp_share.hxx +++ b/xmlscript/source/xmllib_imexp/imp_share.hxx @@ -110,7 +110,7 @@ struct LibraryImport friend class LibraryElement; LibDescriptorArray* mpLibArray; - LibDescriptor* mpLibDesc; // Single library mode + LibDescriptor* const mpLibDesc; // Single library mode sal_Int32 XMLNS_LIBRARY_UID; sal_Int32 XMLNS_XLINK_UID; @@ -155,7 +155,7 @@ protected: rtl::Reference<LibraryImport> mxImport; rtl::Reference<LibElementBase> mxParent; private: - OUString _aLocalName; + OUString const _aLocalName; css::uno::Reference< css::xml::input::XAttributes > _xAttributes; public: diff --git a/xmlscript/source/xmlmod_imexp/imp_share.hxx b/xmlscript/source/xmlmod_imexp/imp_share.hxx index 99260ed4c238..d5f1c973ab59 100644 --- a/xmlscript/source/xmlmod_imexp/imp_share.hxx +++ b/xmlscript/source/xmlmod_imexp/imp_share.hxx @@ -78,7 +78,7 @@ class ModuleElement { rtl::Reference<ModuleImport> mxImport; - OUString _aLocalName; + OUString const _aLocalName; css::uno::Reference< css::xml::input::XAttributes > _xAttributes; OUStringBuffer _strBuffer; |