diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-19 16:28:37 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-20 14:12:57 +0200 |
commit | 12dce07aec980562fa449fa1884e0e8379d680fb (patch) | |
tree | 77bfe25b147d33bccd8f3dfc656f533d547ab3ae /comphelper/source/xml/ofopxmlhelper.cxx | |
parent | Update git submodules (diff) | |
download | core-12dce07aec980562fa449fa1884e0e8379d680fb.tar.gz core-12dce07aec980562fa449fa1884e0e8379d680fb.zip |
loplugin:unusedfields - look for fields that can be const, in comphelper
idea from tml.
Extend the unusedfields plugin to find fields that are only assigned in
the constructor.
Change-Id: I258d3581afbe651d53ce730c9ba27a4598cd9248
Reviewed-on: https://gerrit.libreoffice.org/57733
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'comphelper/source/xml/ofopxmlhelper.cxx')
-rw-r--r-- | comphelper/source/xml/ofopxmlhelper.cxx | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/comphelper/source/xml/ofopxmlhelper.cxx b/comphelper/source/xml/ofopxmlhelper.cxx index bfb3dbdd0fa6..62cd50aba2ca 100644 --- a/comphelper/source/xml/ofopxmlhelper.cxx +++ b/comphelper/source/xml/ofopxmlhelper.cxx @@ -45,23 +45,23 @@ namespace comphelper { class OFOPXMLHelper_Impl : public cppu::WeakImplHelper< css::xml::sax::XDocumentHandler > { - sal_uInt16 m_nFormat; // which format to parse + sal_uInt16 const m_nFormat; // which format to parse // Relations info related strings - OUString m_aRelListElement; - OUString m_aRelElement; - OUString m_aIDAttr; - OUString m_aTypeAttr; - OUString m_aTargetModeAttr; - OUString m_aTargetAttr; + OUString const m_aRelListElement; + OUString const m_aRelElement; + OUString const m_aIDAttr; + OUString const m_aTypeAttr; + OUString const m_aTargetModeAttr; + OUString const m_aTargetAttr; // ContentType related strings - OUString m_aTypesElement; - OUString m_aDefaultElement; - OUString m_aOverrideElement; - OUString m_aExtensionAttr; - OUString m_aPartNameAttr; - OUString m_aContentTypeAttr; + OUString const m_aTypesElement; + OUString const m_aDefaultElement; + OUString const m_aOverrideElement; + OUString const m_aExtensionAttr; + OUString const m_aPartNameAttr; + OUString const m_aContentTypeAttr; css::uno::Sequence< css::uno::Sequence< css::beans::StringPair > > m_aResultSeq; std::vector< OUString > m_aElementsSeq; // stack of elements being parsed |