summaryrefslogtreecommitdiffstats
path: root/xmlsecurity/source/xmlsec
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2017-06-08 12:03:12 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2017-06-09 15:05:54 +0200
commit1dd5e226bd57254024640b10cbbe639f12564655 (patch)
tree6fbbe3197fbb7f74eaa5786919ced46a06cbf39d /xmlsecurity/source/xmlsec
parentuse comphelper::InitPropertySequence in more places (diff)
downloadcore-1dd5e226bd57254024640b10cbbe639f12564655.tar.gz
core-1dd5e226bd57254024640b10cbbe639f12564655.zip
clang-tidy readability-non-const-parameter
Change-Id: I7b2680898dbfc49185fb949349d81f4ac615a470 Reviewed-on: https://gerrit.libreoffice.org/38593 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/source/xmlsec')
-rw-r--r--xmlsecurity/source/xmlsec/certificateextension_certextn.cxx4
-rw-r--r--xmlsecurity/source/xmlsec/certificateextension_certextn.hxx2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmlsecurity/source/xmlsec/certificateextension_certextn.cxx b/xmlsecurity/source/xmlsec/certificateextension_certextn.cxx
index 3c333d2ed64d..b7b5f1e9df1c 100644
--- a/xmlsecurity/source/xmlsec/certificateextension_certextn.cxx
+++ b/xmlsecurity/source/xmlsec/certificateextension_certextn.cxx
@@ -24,8 +24,8 @@ CertificateExtension_CertExtn::CertificateExtension_CertExtn()
{
}
-void CertificateExtension_CertExtn::setCertExtn(unsigned char* value, unsigned int vlen,
- unsigned char* id, unsigned int idlen, bool critical)
+void CertificateExtension_CertExtn::setCertExtn(const unsigned char* value, unsigned int vlen,
+ const unsigned char* id, unsigned int idlen, bool critical)
{
unsigned int i ;
if( value != nullptr && vlen != 0 ) {
diff --git a/xmlsecurity/source/xmlsec/certificateextension_certextn.hxx b/xmlsecurity/source/xmlsec/certificateextension_certextn.hxx
index 9f4d3842aa33..bb1ca1439a5a 100644
--- a/xmlsecurity/source/xmlsec/certificateextension_certextn.hxx
+++ b/xmlsecurity/source/xmlsec/certificateextension_certextn.hxx
@@ -30,7 +30,7 @@ struct CertificateExtension_CertExtn
css::uno::Sequence< sal_Int8 > m_xExtnValue;
CertificateExtension_CertExtn();
- void setCertExtn(unsigned char* value, unsigned int vlen, unsigned char* id, unsigned int idlen, bool critical);
+ void setCertExtn(unsigned char const * value, unsigned int vlen, unsigned char const * id, unsigned int idlen, bool critical);
};
#endif // INCLUDED_XMLSECURITY_SOURCE_XMLSEC_CERTIFICATEEXTENSION_CERTEXTN_HXX