diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 14:22:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-09-28 17:57:07 +0200 |
commit | 4ea413542ebb142dcdec81f43b1b5e565dbe7316 (patch) | |
tree | 3656434a77fbe4b77c5052d9e5cf1b44a5a7b4a3 /xmlsecurity/source | |
parent | 664f8632b1f4720475e6cb7176a08d3d204affd5 (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/source')
4 files changed, 7 insertions, 7 deletions
diff --git a/xmlsecurity/source/dialogs/certificatechooser.cxx b/xmlsecurity/source/dialogs/certificatechooser.cxx index 795e9bf3ae07..75467a6a2e6f 100644 --- a/xmlsecurity/source/dialogs/certificatechooser.cxx +++ b/xmlsecurity/source/dialogs/certificatechooser.cxx @@ -271,7 +271,7 @@ uno::Sequence<uno::Reference< css::security::XCertificate > > CertificateChooser return comphelper::containerToSequence(aRet); } -uno::Reference<xml::crypto::XXMLSecurityContext> CertificateChooser::GetSelectedSecurityContext() +uno::Reference<xml::crypto::XXMLSecurityContext> CertificateChooser::GetSelectedSecurityContext() const { int nSel = m_xCertLB->get_selected_index(); if (nSel == -1) @@ -282,7 +282,7 @@ uno::Reference<xml::crypto::XXMLSecurityContext> CertificateChooser::GetSelected return xCert; } -OUString CertificateChooser::GetDescription() +OUString CertificateChooser::GetDescription() const { return m_xDescriptionED->get_text(); } diff --git a/xmlsecurity/source/dialogs/certificateviewer.cxx b/xmlsecurity/source/dialogs/certificateviewer.cxx index e916fffceb17..55743c62facb 100644 --- a/xmlsecurity/source/dialogs/certificateviewer.cxx +++ b/xmlsecurity/source/dialogs/certificateviewer.cxx @@ -353,7 +353,7 @@ IMPL_LINK_NOARG(CertificateViewerCertPathTP, CertSelectHdl, weld::TreeView&, voi mxViewCertPB->set_sensitive(bSensitive); } -void CertificateViewerCertPathTP::InsertCert(weld::TreeIter* pParent, const OUString& rName, +void CertificateViewerCertPathTP::InsertCert(const weld::TreeIter* pParent, const OUString& rName, const css::uno::Reference< css::security::XCertificate >& rxCert, bool bValid) { diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index 6f0407433f2f..ae7712f79fb3 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -83,7 +83,7 @@ namespace virtual void Notify( const css::uno::Sequence< OUString >& aPropertyNames ) override; SaveODFItem(); //See group ODF in Common.xcs - bool isLessODF1_2() + bool isLessODF1_2() const { return m_nODF < 3; } @@ -113,7 +113,7 @@ namespace DigitalSignaturesDialog::DigitalSignaturesDialog( weld::Window* pParent, - uno::Reference< uno::XComponentContext >& rxCtx, DocumentSignatureMode eMode, + const uno::Reference< uno::XComponentContext >& rxCtx, DocumentSignatureMode eMode, bool bReadOnly, const OUString& sODFVersion, bool bHasDocumentSignature) : GenericDialogController(pParent, "xmlsec/ui/digitalsignaturesdialog.ui", "DigitalSignaturesDialog") , maSignatureManager(rxCtx, eMode) diff --git a/xmlsecurity/source/helper/documentsignaturemanager.cxx b/xmlsecurity/source/helper/documentsignaturemanager.cxx index 67885007cd7d..a0e674c3bd1b 100644 --- a/xmlsecurity/source/helper/documentsignaturemanager.cxx +++ b/xmlsecurity/source/helper/documentsignaturemanager.cxx @@ -672,13 +672,13 @@ DocumentSignatureManager::getGpgSecurityEnvironment() } uno::Reference<xml::crypto::XXMLSecurityContext> const& -DocumentSignatureManager::getSecurityContext() +DocumentSignatureManager::getSecurityContext() const { return mxSecurityContext; } uno::Reference<xml::crypto::XXMLSecurityContext> const& -DocumentSignatureManager::getGpgSecurityContext() +DocumentSignatureManager::getGpgSecurityContext() const { return mxGpgSecurityContext; } |