From 9ad4eeb4fa413b1a3e084d141c6eb01795f95b7f Mon Sep 17 00:00:00 2001 From: Andreas Becker Date: Thu, 28 Apr 2011 00:59:28 +0200 Subject: fixed cppcheck warnings --- xmlsecurity/tools/demo/performance.cxx | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'xmlsecurity') diff --git a/xmlsecurity/tools/demo/performance.cxx b/xmlsecurity/tools/demo/performance.cxx index 582f101957e6..c8ee45907703 100644 --- a/xmlsecurity/tools/demo/performance.cxx +++ b/xmlsecurity/tools/demo/performance.cxx @@ -244,7 +244,7 @@ public: struct AncestorEvent { - AncestorEvent( sal_Int32 nAttrNum ):aAttributeList(nAttrNum){}; + AncestorEvent(sal_Int32 nAttrNum) : aAttributeList(nAttrNum), bIsStartElement(false) {}; bool bIsStartElement; rtl::OUString ouName; @@ -357,27 +357,30 @@ private: const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler >& xDocumentHandler); - void XSecTester::sendAncestorStartElementEvent( + void sendAncestorStartElementEvent( const rtl::OUString& ouName, const com::sun::star::uno::Sequence< com::sun::star::xml::csax::XMLAttribute >& xAttrList, const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler >& xDocumentHandler) const; - void XSecTester::sendAncestorEndElementEvent( + void sendAncestorEndElementEvent( const rtl::OUString& ouName, const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler >& xDocumentHandler) const; - std::vector< AncestorEvent* >::const_iterator XSecTester::checkAncestorStartElementEvent( + std::vector< AncestorEvent* >::const_iterator checkAncestorStartElementEvent( const std::vector< AncestorEvent* >::const_iterator& ii, const com::sun::star::uno::Reference< com::sun::star::xml::sax::XDocumentHandler >& xDocumentHandler) const; public: - XSecTester(const com::sun::star::uno::Reference< - com::sun::star::lang::XMultiServiceFactory >& rxMSF) - :mxMSF( rxMSF ){}; + XSecTester(const com::sun::star::uno::Reference& rxMSF) + : mxMSF(rxMSF), m_bIsExporting(false), m_bIsBlocking(false), + m_bIsInsideCollectedElement(false), m_bIsSAXEventKeeperOnTheSAXChain(false) + { + }; + virtual ~XSecTester(){}; /* XSignatureCreationResultListener */ -- cgit