Kaydet (Commit) a8a11fba authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:unusedfields,can-be-const in xmlsecurity

Change-Id: I271b1d69d5231ab76cb49fb0101c09d7c0ef6b79
Reviewed-on: https://gerrit.libreoffice.org/57779
Tested-by: Jenkins
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 150c12fc
...@@ -73,7 +73,7 @@ private: ...@@ -73,7 +73,7 @@ private:
VclPtr<Edit> m_pDescriptionED; VclPtr<Edit> m_pDescriptionED;
bool mbInitialized; bool mbInitialized;
UserAction meAction; UserAction const meAction;
OUString msPreferredKey; OUString msPreferredKey;
css::uno::Reference<css::security::XCertificate> mxEncryptToSelf; css::uno::Reference<css::security::XCertificate> mxEncryptToSelf;
......
...@@ -50,7 +50,7 @@ private: ...@@ -50,7 +50,7 @@ private:
sal_uInt16 mnDetailsId; sal_uInt16 mnDetailsId;
sal_uInt16 mnPathId; sal_uInt16 mnPathId;
bool mbCheckForPrivateKey; bool const mbCheckForPrivateKey;
css::uno::Reference< css::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment; css::uno::Reference< css::xml::crypto::XSecurityEnvironment > mxSecurityEnvironment;
css::uno::Reference< css::security::XCertificate > mxCert; css::uno::Reference< css::security::XCertificate > mxCert;
......
...@@ -79,10 +79,10 @@ private: ...@@ -79,10 +79,10 @@ private:
VclPtr<CloseButton> m_pCloseBtn; VclPtr<CloseButton> m_pCloseBtn;
OUString m_sODFVersion; OUString const m_sODFVersion;
//Signals if the document contains already a document signature. This is only //Signals if the document contains already a document signature. This is only
//important when we are signing macros and if the value is true. //important when we are signing macros and if the value is true.
bool m_bHasDocumentSignature; bool const m_bHasDocumentSignature;
bool m_bWarningShowSignMacro; bool m_bWarningShowSignMacro;
bool m_bAdESCompliant; bool m_bAdESCompliant;
......
...@@ -64,7 +64,7 @@ public: ...@@ -64,7 +64,7 @@ public:
XMLSignatureHelper maSignatureHelper; XMLSignatureHelper maSignatureHelper;
std::unique_ptr<PDFSignatureHelper> mpPDFSignatureHelper; std::unique_ptr<PDFSignatureHelper> mpPDFSignatureHelper;
SignatureInformations maCurrentSignatureInformations; SignatureInformations maCurrentSignatureInformations;
DocumentSignatureMode meSignatureMode; DocumentSignatureMode const meSignatureMode;
css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>> m_manifest; css::uno::Sequence<css::uno::Sequence<css::beans::PropertyValue>> m_manifest;
css::uno::Reference<css::io::XStream> mxSignatureStream; css::uno::Reference<css::io::XStream> mxSignatureStream;
css::uno::Reference<css::io::XStream> mxTempSignatureStream; css::uno::Reference<css::io::XStream> mxTempSignatureStream;
......
...@@ -43,11 +43,11 @@ CertificateViewer::CertificateViewer( ...@@ -43,11 +43,11 @@ CertificateViewer::CertificateViewer(
vcl::Window* _pParent, vcl::Window* _pParent,
const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment, const css::uno::Reference< css::xml::crypto::XSecurityEnvironment >& _rxSecurityEnvironment,
const css::uno::Reference< css::security::XCertificate >& _rXCert, bool bCheckForPrivateKey ) const css::uno::Reference< css::security::XCertificate >& _rXCert, bool bCheckForPrivateKey )
: TabDialog(_pParent, "ViewCertDialog", "xmlsec/ui/viewcertdialog.ui" ) : TabDialog(_pParent, "ViewCertDialog", "xmlsec/ui/viewcertdialog.ui" ),
mbCheckForPrivateKey(bCheckForPrivateKey)
{ {
get(mpTabCtrl, "tabcontrol"); get(mpTabCtrl, "tabcontrol");
mbCheckForPrivateKey = bCheckForPrivateKey;
mxSecurityEnvironment = _rxSecurityEnvironment; mxSecurityEnvironment = _rxSecurityEnvironment;
mxCert = _rXCert; mxCert = _rXCert;
...@@ -193,8 +193,8 @@ void CertificateViewerGeneralTP::ActivatePage() ...@@ -193,8 +193,8 @@ void CertificateViewerGeneralTP::ActivatePage()
struct Details_UserDatat struct Details_UserDatat
{ {
OUString maTxt; OUString const maTxt;
bool mbFixedWidthFont; bool const mbFixedWidthFont;
inline Details_UserDatat( const OUString& _rTxt, bool _bFixedWidthFont ); inline Details_UserDatat( const OUString& _rTxt, bool _bFixedWidthFont );
}; };
...@@ -361,7 +361,7 @@ IMPL_LINK_NOARG(CertificateViewerDetailsTP, ElementSelectHdl, SvTreeListBox*, vo ...@@ -361,7 +361,7 @@ IMPL_LINK_NOARG(CertificateViewerDetailsTP, ElementSelectHdl, SvTreeListBox*, vo
struct CertPath_UserData struct CertPath_UserData
{ {
css::uno::Reference< css::security::XCertificate > mxCert; css::uno::Reference< css::security::XCertificate > mxCert;
bool mbValid; bool const mbValid;
CertPath_UserData( css::uno::Reference< css::security::XCertificate > const & xCert, bool bValid): CertPath_UserData( css::uno::Reference< css::security::XCertificate > const & xCert, bool bValid):
mxCert(xCert), mxCert(xCert),
......
...@@ -44,13 +44,13 @@ private: ...@@ -44,13 +44,13 @@ private:
* BEFOREMODIFY - this ElementCollector must notify before any * BEFOREMODIFY - this ElementCollector must notify before any
* internal modification happens. * internal modification happens.
*/ */
css::xml::crypto::sax::ElementMarkPriority m_nPriority; css::xml::crypto::sax::ElementMarkPriority const m_nPriority;
/* /*
* the modify flag, representing whether which elementcollector will * the modify flag, representing whether which elementcollector will
* modify its data. * modify its data.
*/ */
bool m_bToModify; bool const m_bToModify;
/* the notify enable flag, see notifyListener method */ /* the notify enable flag, see notifyListener method */
bool m_bAbleToNotify; bool m_bAbleToNotify;
......
...@@ -44,7 +44,7 @@ protected: ...@@ -44,7 +44,7 @@ protected:
sal_Int32 m_nSecurityId; sal_Int32 m_nSecurityId;
/* the buffer Id */ /* the buffer Id */
sal_Int32 m_nBufferId; sal_Int32 const m_nBufferId;
/* /*
* the type value, is one of following values: * the type value, is one of following values:
......
...@@ -31,8 +31,8 @@ private: ...@@ -31,8 +31,8 @@ private:
::osl::Mutex m_aMutex; ::osl::Mutex m_aMutex;
PK11Context* m_pContext; PK11Context* m_pContext;
sal_Int32 m_nDigestLength; sal_Int32 const m_nDigestLength;
bool m_b1KData; bool const m_b1KData;
sal_Int32 m_nDigested; sal_Int32 m_nDigested;
bool m_bDisposed; bool m_bDisposed;
......
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
#include <sal/types.h> #include <sal/types.h>
struct ErrDesc { struct ErrDesc {
PRErrorCode errNum; PRErrorCode const errNum;
const char * errString; const char * errString;
}; };
......
...@@ -51,7 +51,7 @@ class XSECXMLSEC_DLLPUBLIC XMLElementWrapper_XmlSecImpl : public cppu::WeakImplH ...@@ -51,7 +51,7 @@ class XSECXMLSEC_DLLPUBLIC XMLElementWrapper_XmlSecImpl : public cppu::WeakImplH
{ {
private: private:
/* the libxml2 node wrapped by this object */ /* the libxml2 node wrapped by this object */
xmlNodePtr m_pElement; xmlNodePtr const m_pElement;
public: public:
explicit XMLElementWrapper_XmlSecImpl(const xmlNodePtr pNode); explicit XMLElementWrapper_XmlSecImpl(const xmlNodePtr pNode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment