diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-20 15:57:13 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2018-07-23 08:41:51 +0200 |
commit | a8a11fbadc4cb6a26981be2b539066f0845a9000 (patch) | |
tree | 106e5b1eb00e894e302d69fd6894930f69ebd9fb /xmlsecurity/source/xmlsec | |
parent | 150c12fc0fba2c2f4b08b4298678ee49676ebae0 (diff) |
loplugin:unusedfields,can-be-const in xmlsecurity
Change-Id: I271b1d69d5231ab76cb49fb0101c09d7c0ef6b79
Reviewed-on: https://gerrit.libreoffice.org/57779
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/xmlsec')
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/digestcontext.hxx | 4 | ||||
-rw-r--r-- | xmlsecurity/source/xmlsec/nss/secerror.cxx | 2 | ||||
-rw-r--r-- | xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/xmlsecurity/source/xmlsec/nss/digestcontext.hxx b/xmlsecurity/source/xmlsec/nss/digestcontext.hxx index 7e20cd8d99d0..a8aafdefeec3 100644 --- a/xmlsecurity/source/xmlsec/nss/digestcontext.hxx +++ b/xmlsecurity/source/xmlsec/nss/digestcontext.hxx @@ -31,8 +31,8 @@ private: ::osl::Mutex m_aMutex; PK11Context* m_pContext; - sal_Int32 m_nDigestLength; - bool m_b1KData; + sal_Int32 const m_nDigestLength; + bool const m_b1KData; sal_Int32 m_nDigested; bool m_bDisposed; diff --git a/xmlsecurity/source/xmlsec/nss/secerror.cxx b/xmlsecurity/source/xmlsec/nss/secerror.cxx index 638e54c3ca82..717dd32a535a 100644 --- a/xmlsecurity/source/xmlsec/nss/secerror.cxx +++ b/xmlsecurity/source/xmlsec/nss/secerror.cxx @@ -29,7 +29,7 @@ #include <sal/types.h> struct ErrDesc { - PRErrorCode errNum; + PRErrorCode const errNum; const char * errString; }; diff --git a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx index cf550f3e4f33..27940e73c61b 100644 --- a/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx +++ b/xmlsecurity/source/xmlsec/xmlelementwrapper_xmlsecimpl.hxx @@ -51,7 +51,7 @@ class XSECXMLSEC_DLLPUBLIC XMLElementWrapper_XmlSecImpl : public cppu::WeakImplH { private: /* the libxml2 node wrapped by this object */ - xmlNodePtr m_pElement; + xmlNodePtr const m_pElement; public: explicit XMLElementWrapper_XmlSecImpl(const xmlNodePtr pNode); |