diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-29 20:23:30 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-30 08:13:26 +0000 |
commit | e87f71cebee26624b4e9495b0acc172d47e705dd (patch) | |
tree | e30b48bc7923147a4edc2c7925e3a8d85bf999f6 /sax/test | |
parent | 8be504b6239d34963cb44411d0b3502ac23aeeb2 (diff) |
cppcheck: noExplicitConstructor
Change-Id: Id6d969713d94b558a93d303c6dabcbfdd1c65194
Diffstat (limited to 'sax/test')
-rw-r--r-- | sax/test/sax/testsax.cxx | 2 | ||||
-rw-r--r-- | sax/test/sax/testwriter.cxx | 4 | ||||
-rw-r--r-- | sax/test/saxdemo.cxx | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/sax/test/sax/testsax.cxx b/sax/test/sax/testsax.cxx index 104ac8c7de77..8dbfdfbaac82 100644 --- a/sax/test/sax/testsax.cxx +++ b/sax/test/sax/testsax.cxx @@ -47,7 +47,7 @@ namespace sax_test { class OSaxParserTest : public WeakImplHelper< XSimpleTest > { public: - OSaxParserTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory ) + explicit OSaxParserTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory ) { } diff --git a/sax/test/sax/testwriter.cxx b/sax/test/sax/testwriter.cxx index a1bddcf26c6b..c0af020601f2 100644 --- a/sax/test/sax/testwriter.cxx +++ b/sax/test/sax/testwriter.cxx @@ -49,7 +49,7 @@ class OFileWriter : public WeakImplHelper< XOutputStream > { public: - OFileWriter( char *pcFile ) { strncpy( m_pcFile, pcFile, 256 - 1 ); m_f = 0; } + explicit OFileWriter( char *pcFile ) { strncpy( m_pcFile, pcFile, 256 - 1 ); m_f = 0; } public: @@ -94,7 +94,7 @@ class OSaxWriterTest : public WeakImplHelper< XSimpleTest > { public: - OSaxWriterTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory ) + explicit OSaxWriterTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory ) { } diff --git a/sax/test/saxdemo.cxx b/sax/test/saxdemo.cxx index 51012fe61020..cc881ebb1bcc 100644 --- a/sax/test/saxdemo.cxx +++ b/sax/test/saxdemo.cxx @@ -59,7 +59,7 @@ using namespace ::com::sun::star::io; class OInputStream : public WeakImplHelper < XInputStream > { public: - OInputStream( const Sequence< sal_Int8 >&seq ) : + explicit OInputStream( const Sequence< sal_Int8 >&seq ) : m_seq( seq ), nPos( 0 ) {} @@ -433,7 +433,7 @@ class OFileWriter : public WeakImplHelper< XOutputStream > { public: - OFileWriter( char *pcFile ) { strncpy( m_pcFile , pcFile, 256 - 1 ); m_f = 0; } + explicit OFileWriter( char *pcFile ) { strncpy( m_pcFile , pcFile, 256 - 1 ); m_f = 0; } public: |