diff options
9 files changed, 15 insertions, 14 deletions
diff --git a/xmlscript/source/xml_helper/xml_byteseq.cxx b/xmlscript/source/xml_helper/xml_byteseq.cxx index 9e88ff9a7242..6fc7c403bc72 100644 --- a/xmlscript/source/xml_helper/xml_byteseq.cxx +++ b/xmlscript/source/xml_helper/xml_byteseq.cxx @@ -38,7 +38,7 @@ class BSeqInputStream sal_Int32 _nPos; public: - inline BSeqInputStream( ByteSequence const & rSeq ) + explicit BSeqInputStream( ByteSequence const & rSeq ) : _seq( rSeq ) , _nPos( 0 ) {} @@ -103,7 +103,7 @@ class BSeqOutputStream ByteSequence * _seq; public: - inline BSeqOutputStream( ByteSequence * seq ) + explicit BSeqOutputStream( ByteSequence * seq ) : _seq( seq ) {} diff --git a/xmlscript/source/xmldlg_imexp/exp_share.hxx b/xmlscript/source/xmldlg_imexp/exp_share.hxx index c67853ce6ffe..8dc886ce5a34 100644 --- a/xmlscript/source/xmldlg_imexp/exp_share.hxx +++ b/xmlscript/source/xmldlg_imexp/exp_share.hxx @@ -56,7 +56,7 @@ struct Style OUString _id; - Style( short all_ ) + explicit Style( short all_ ) : _backgroundColor(0) , _textColor(0) , _textLineColor(0) @@ -94,7 +94,7 @@ class ElementDescriptor css::uno::Reference< css::frame::XModel > _xDocument; public: - inline ElementDescriptor( + ElementDescriptor( css::uno::Reference< css::beans::XPropertySet > const & xProps, css::uno::Reference< css::beans::XPropertyState > const & xPropState, OUString const & name, css::uno::Reference< css::frame::XModel > const & xDocument ) @@ -103,7 +103,7 @@ public: , _xPropState( xPropState ) , _xDocument( xDocument ) {} - inline ElementDescriptor( + explicit ElementDescriptor( OUString const & name ) : XMLElement( name ) {} diff --git a/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx b/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx index 6e770e881c08..bc4ff47d00b1 100644 --- a/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx +++ b/xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx @@ -41,9 +41,10 @@ class InputStreamProvider ByteSequence _bytes; public: - inline InputStreamProvider( ByteSequence const & rBytes ) + explicit InputStreamProvider( ByteSequence const & rBytes ) : _bytes( rBytes ) - {} + { + } // XInputStreamProvider virtual Reference< io::XInputStream > SAL_CALL createInputStream() diff --git a/xmlscript/source/xmlmod_imexp/imp_share.hxx b/xmlscript/source/xmlmod_imexp/imp_share.hxx index 9ea39c160be2..ddcbea3f6459 100644 --- a/xmlscript/source/xmlmod_imexp/imp_share.hxx +++ b/xmlscript/source/xmlmod_imexp/imp_share.hxx @@ -53,7 +53,7 @@ struct ModuleImport sal_Int32 XMLNS_XLINK_UID; public: - ModuleImport(ModuleDescriptor& rModuleDesc) + explicit ModuleImport(ModuleDescriptor& rModuleDesc) : mrModuleDesc(rModuleDesc) , XMLNS_SCRIPT_UID(0) , XMLNS_LIBRARY_UID(0) diff --git a/xmlsecurity/source/component/certificatecontainer.hxx b/xmlsecurity/source/component/certificatecontainer.hxx index 9d5b2169eb1c..3dcbaa1166c5 100644 --- a/xmlsecurity/source/component/certificatecontainer.hxx +++ b/xmlsecurity/source/component/certificatecontainer.hxx @@ -45,8 +45,8 @@ class CertificateContainer : public ::cppu::WeakImplHelper2< css::lang::XService public: - CertificateContainer(const css::uno::Reference< css::lang::XMultiServiceFactory >& ) {}; - virtual ~CertificateContainer(){}; + explicit CertificateContainer(const css::uno::Reference< css::lang::XMultiServiceFactory >& ) {} + virtual ~CertificateContainer() {} virtual sal_Bool SAL_CALL addCertificate( const OUString & url, const OUString & certificate_name, sal_Bool trust ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; virtual css::security::CertificateContainerStatus SAL_CALL hasCertificate( const OUString & url, const OUString & certificate_name ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/xmlsecurity/source/component/documentdigitalsignatures.hxx b/xmlsecurity/source/component/documentdigitalsignatures.hxx index ab674f367638..2c72474444a9 100644 --- a/xmlsecurity/source/component/documentdigitalsignatures.hxx +++ b/xmlsecurity/source/component/documentdigitalsignatures.hxx @@ -57,7 +57,7 @@ private: com::sun::star::uno::Sequence< ::com::sun::star::security::DocumentSignatureInformation > ImplVerifySignatures( const ::com::sun::star::uno::Reference< ::com::sun::star::embed::XStorage >& rxStorage, const ::com::sun::star::uno::Reference< ::com::sun::star::io::XInputStream >& xSignStream, DocumentSignatureMode eMode ) throw (::com::sun::star::uno::RuntimeException); public: - DocumentDigitalSignatures( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext>& rxCtx ); + explicit DocumentDigitalSignatures( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext>& rxCtx ); // for service registration... static OUString GetImplementationName() throw (com::sun::star::uno::RuntimeException); diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx index 1142b1dfd173..b607fa3c5ad7 100644 --- a/xmlsecurity/source/dialogs/macrosecurity.cxx +++ b/xmlsecurity/source/dialogs/macrosecurity.cxx @@ -359,7 +359,7 @@ void MacroSecurityTrustedSourcesTP::FillCertLB() class TrustCertLB : public SvSimpleTable { public: - TrustCertLB(SvSimpleTableContainer &rContainer) + explicit TrustCertLB(SvSimpleTableContainer &rContainer) : SvSimpleTable(rContainer, 0) { } diff --git a/xmlsecurity/source/framework/encryptionengine.hxx b/xmlsecurity/source/framework/encryptionengine.hxx index 020d1c89325f..e8cdda4b7303 100644 --- a/xmlsecurity/source/framework/encryptionengine.hxx +++ b/xmlsecurity/source/framework/encryptionengine.hxx @@ -72,7 +72,7 @@ protected: sal_Int32 m_nIdOfBlocker; protected: - EncryptionEngine( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > & xContext ); + explicit EncryptionEngine( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext > & xContext ); virtual ~EncryptionEngine(){}; virtual void tryToPerform( ) diff --git a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.hxx b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.hxx index 793f70972271..b610a0f32078 100644 --- a/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.hxx +++ b/xmlsecurity/source/xmlsec/mscrypt/securityenvironment_mscryptimpl.hxx @@ -84,7 +84,7 @@ class SecurityEnvironment_MSCryptImpl : public ::cppu::WeakImplHelper3< ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory > m_xServiceManager ; public : - SecurityEnvironment_MSCryptImpl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aFactory ) ; + explicit SecurityEnvironment_MSCryptImpl( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& aFactory ) ; virtual ~SecurityEnvironment_MSCryptImpl() ; //Methods from XSecurityEnvironment |