diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-20 15:59:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-20 20:40:54 +0100 |
commit | dcee23b7f8004c47cbab320e1a07bf518a385fce (patch) | |
tree | 225a5c5b9154241ca6eee47c93d1d625fd39a899 /xmlscript/source | |
parent | 484759aadd964b011e8e649ba021d09f40a79440 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Idcf5460ec59cfb6f13055652c094d460c15da5ed
Diffstat (limited to 'xmlscript/source')
-rw-r--r-- | xmlscript/source/xml_helper/xml_byteseq.cxx | 4 | ||||
-rw-r--r-- | xmlscript/source/xmldlg_imexp/exp_share.hxx | 6 | ||||
-rw-r--r-- | xmlscript/source/xmldlg_imexp/xmldlg_addfunc.cxx | 5 | ||||
-rw-r--r-- | xmlscript/source/xmlmod_imexp/imp_share.hxx | 2 |
4 files changed, 9 insertions, 8 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) |