summaryrefslogtreecommitdiff
path: root/xmlsecurity/inc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 14:22:40 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-09-28 17:57:07 +0200
commit4ea413542ebb142dcdec81f43b1b5e565dbe7316 (patch)
tree3656434a77fbe4b77c5052d9e5cf1b44a5a7b4a3 /xmlsecurity/inc
parent664f8632b1f4720475e6cb7176a08d3d204affd5 (diff)
loplugin:constmethod in xmlsecurity
Change-Id: I7892b4819fd7491882e6ca995bf2ce5c65230609 Reviewed-on: https://gerrit.libreoffice.org/79791 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'xmlsecurity/inc')
-rw-r--r--xmlsecurity/inc/certificatechooser.hxx4
-rw-r--r--xmlsecurity/inc/certificateviewer.hxx2
-rw-r--r--xmlsecurity/inc/digitalsignaturesdialog.hxx2
-rw-r--r--xmlsecurity/inc/documentsignaturemanager.hxx8
4 files changed, 8 insertions, 8 deletions
diff --git a/xmlsecurity/inc/certificatechooser.hxx b/xmlsecurity/inc/certificatechooser.hxx
index 328fdc24f2b3..d84af0fcc92f 100644
--- a/xmlsecurity/inc/certificatechooser.hxx
+++ b/xmlsecurity/inc/certificatechooser.hxx
@@ -85,9 +85,9 @@ public:
short run() override;
css::uno::Sequence<css::uno::Reference< css::security::XCertificate > > GetSelectedCertificates();
- css::uno::Reference< css::xml::crypto::XXMLSecurityContext > GetSelectedSecurityContext();
+ css::uno::Reference< css::xml::crypto::XXMLSecurityContext > GetSelectedSecurityContext() const;
/// Gets the description string provided when selecting the certificate.
- OUString GetDescription();
+ OUString GetDescription() const;
/// Returns the usage string of the selected certificate, if any.
OUString GetUsageText();
diff --git a/xmlsecurity/inc/certificateviewer.hxx b/xmlsecurity/inc/certificateviewer.hxx
index b787ad4b08b2..d531dd1fc205 100644
--- a/xmlsecurity/inc/certificateviewer.hxx
+++ b/xmlsecurity/inc/certificateviewer.hxx
@@ -148,7 +148,7 @@ private:
DECL_LINK(ViewCertHdl, weld::Button&, void);
DECL_LINK(CertSelectHdl, weld::TreeView&, void);
- void InsertCert(weld::TreeIter* pParent, const OUString& _rName,
+ void InsertCert(const weld::TreeIter* pParent, const OUString& _rName,
const css::uno::Reference< css::security::XCertificate >& rxCert,
bool bValid);
diff --git a/xmlsecurity/inc/digitalsignaturesdialog.hxx b/xmlsecurity/inc/digitalsignaturesdialog.hxx
index 459beafcc956..363dfdeb2d41 100644
--- a/xmlsecurity/inc/digitalsignaturesdialog.hxx
+++ b/xmlsecurity/inc/digitalsignaturesdialog.hxx
@@ -106,7 +106,7 @@ private:
bool canAddRemove();
public:
- DigitalSignaturesDialog(weld::Window* pParent, css::uno::Reference<
+ DigitalSignaturesDialog(weld::Window* pParent, const css::uno::Reference<
css::uno::XComponentContext >& rxCtx, DocumentSignatureMode eMode,
bool bReadOnly, const OUString& sODFVersion, bool bHasDocumentSignature);
virtual ~DigitalSignaturesDialog() override;
diff --git a/xmlsecurity/inc/documentsignaturemanager.hxx b/xmlsecurity/inc/documentsignaturemanager.hxx
index 1bf98ba5b8cf..5bdc679c4726 100644
--- a/xmlsecurity/inc/documentsignaturemanager.hxx
+++ b/xmlsecurity/inc/documentsignaturemanager.hxx
@@ -116,16 +116,16 @@ public:
/// Get the security environment.
css::uno::Reference<css::xml::crypto::XSecurityEnvironment> getSecurityEnvironment();
css::uno::Reference<css::xml::crypto::XSecurityEnvironment> getGpgSecurityEnvironment();
- css::uno::Reference<css::xml::crypto::XXMLSecurityContext> const& getSecurityContext();
- css::uno::Reference<css::xml::crypto::XXMLSecurityContext> const& getGpgSecurityContext();
+ css::uno::Reference<css::xml::crypto::XXMLSecurityContext> const& getSecurityContext() const;
+ css::uno::Reference<css::xml::crypto::XXMLSecurityContext> const& getGpgSecurityContext() const;
void setStore(const css::uno::Reference<css::embed::XStorage>& xStore) { mxStore = xStore; }
XMLSignatureHelper& getSignatureHelper() { return maSignatureHelper; }
- bool hasPDFSignatureHelper() { return mpPDFSignatureHelper.get(); }
+ bool hasPDFSignatureHelper() const { return mpPDFSignatureHelper.get(); }
void setSignatureStream(const css::uno::Reference<css::io::XStream>& xSignatureStream)
{
mxSignatureStream = xSignatureStream;
}
- const css::uno::Reference<css::embed::XStorage>& getStore() { return mxStore; }
+ const css::uno::Reference<css::embed::XStorage>& getStore() const { return mxStore; }
DocumentSignatureMode getSignatureMode() const { return meSignatureMode; }
SignatureInformations& getCurrentSignatureInformations()
{