diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-11-24 10:09:57 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-11-24 10:35:44 +0000 |
commit | 70b09d932225027d531c9a95317320174f8ad687 (patch) | |
tree | ec36c7d4927721c59d22830385517770e820d98b /io | |
parent | cbc5dc14d6bb795a9c2b54d624b10770a2a95a00 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I1934441858baeeb41a46f694dbcef2d846b308b7
Diffstat (limited to 'io')
-rw-r--r-- | io/source/acceptor/acc_pipe.cxx | 2 | ||||
-rw-r--r-- | io/source/acceptor/acc_socket.cxx | 4 | ||||
-rw-r--r-- | io/source/acceptor/acceptor.cxx | 2 | ||||
-rw-r--r-- | io/source/connector/connector.cxx | 2 | ||||
-rw-r--r-- | io/source/connector/connector.hxx | 4 | ||||
-rw-r--r-- | io/source/connector/ctr_socket.cxx | 2 | ||||
-rw-r--r-- | io/source/stm/odata.cxx | 2 | ||||
-rw-r--r-- | io/test/stm/datatest.cxx | 6 | ||||
-rw-r--r-- | io/test/stm/marktest.cxx | 4 | ||||
-rw-r--r-- | io/test/stm/pipetest.cxx | 2 | ||||
-rw-r--r-- | io/test/stm/pumptest.cxx | 2 |
11 files changed, 16 insertions, 16 deletions
diff --git a/io/source/acceptor/acc_pipe.cxx b/io/source/acceptor/acc_pipe.cxx index 37097aa4867d..74baf3b2651a 100644 --- a/io/source/acceptor/acc_pipe.cxx +++ b/io/source/acceptor/acc_pipe.cxx @@ -42,7 +42,7 @@ namespace io_acceptor public MyPipeConnection { public: - PipeConnection( const OUString &sConnectionDescription); + explicit PipeConnection( const OUString &sConnectionDescription); virtual ~PipeConnection(); virtual sal_Int32 SAL_CALL read( Sequence< sal_Int8 >& aReadBytes, sal_Int32 nBytesToRead ) diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx index 976b7826f05d..b1a30a15a82f 100644 --- a/io/source/acceptor/acc_socket.cxx +++ b/io/source/acceptor/acc_socket.cxx @@ -69,7 +69,7 @@ namespace io_acceptor { { public: - SocketConnection( const OUString & sConnectionDescription ); + explicit SocketConnection( const OUString & sConnectionDescription ); virtual ~SocketConnection(); virtual sal_Int32 SAL_CALL read( css::uno::Sequence< sal_Int8 >& aReadBytes, @@ -135,7 +135,7 @@ namespace io_acceptor { struct callError { const Any & any; - callError(const Any & any); + explicit callError(const Any & any); void operator () (Reference<XStreamListener> xStreamListener); }; diff --git a/io/source/acceptor/acceptor.cxx b/io/source/acceptor/acceptor.cxx index 12fde58be079..4822978be296 100644 --- a/io/source/acceptor/acceptor.cxx +++ b/io/source/acceptor/acceptor.cxx @@ -49,7 +49,7 @@ namespace io_acceptor class OAcceptor : public WeakImplHelper< XAcceptor, XServiceInfo > { public: - OAcceptor(const Reference< XComponentContext > & xCtx); + explicit OAcceptor(const Reference< XComponentContext > & xCtx); virtual ~OAcceptor(); public: // Methods diff --git a/io/source/connector/connector.cxx b/io/source/connector/connector.cxx index 025f1a00db71..91071feb803d 100644 --- a/io/source/connector/connector.cxx +++ b/io/source/connector/connector.cxx @@ -52,7 +52,7 @@ namespace stoc_connector Reference< XMultiComponentFactory > _xSMgr; Reference< XComponentContext > _xCtx; public: - OConnector(const Reference< XComponentContext > &xCtx); + explicit OConnector(const Reference< XComponentContext > &xCtx); virtual ~OConnector(); // Methods virtual Reference< XConnection > SAL_CALL connect( diff --git a/io/source/connector/connector.hxx b/io/source/connector/connector.hxx index 117d63d304d5..ae9e98f3bc58 100644 --- a/io/source/connector/connector.hxx +++ b/io/source/connector/connector.hxx @@ -60,7 +60,7 @@ namespace stoc_connector { public: - PipeConnection( const OUString &sConnectionDescription ); + explicit PipeConnection( const OUString &sConnectionDescription ); virtual ~PipeConnection(); virtual sal_Int32 SAL_CALL read( css::uno::Sequence< sal_Int8 >& aReadBytes, @@ -89,7 +89,7 @@ namespace stoc_connector { public: - SocketConnection( const OUString & sConnectionDescription ); + explicit SocketConnection( const OUString & sConnectionDescription ); virtual ~SocketConnection(); virtual sal_Int32 SAL_CALL read( css::uno::Sequence< sal_Int8 >& aReadBytes, diff --git a/io/source/connector/ctr_socket.cxx b/io/source/connector/ctr_socket.cxx index 3d7e320575f1..2995aad0a24b 100644 --- a/io/source/connector/ctr_socket.cxx +++ b/io/source/connector/ctr_socket.cxx @@ -56,7 +56,7 @@ namespace stoc_connector { struct callError { const Any & any; - callError(const Any & any); + explicit callError(const Any & any); void operator () (Reference<XStreamListener> xStreamListener); }; diff --git a/io/source/stm/odata.cxx b/io/source/stm/odata.cxx index 56b15f435f66..878e0dfffd91 100644 --- a/io/source/stm/odata.cxx +++ b/io/source/stm/odata.cxx @@ -1178,7 +1178,7 @@ class OObjectInputStream: XObjectInputStream, XMarkableStream > { public: - OObjectInputStream( const Reference < XComponentContext > &r) + explicit OObjectInputStream( const Reference < XComponentContext > &r) : m_rSMgr( r->getServiceManager() ) , m_rCxt( r ) , m_bValidMarkable(false) diff --git a/io/test/stm/datatest.cxx b/io/test/stm/datatest.cxx index 9ac2440e5772..e6cc3238f84c 100644 --- a/io/test/stm/datatest.cxx +++ b/io/test/stm/datatest.cxx @@ -63,7 +63,7 @@ class ODataStreamTest : public WeakImplHelper< XSimpleTest > { public: - ODataStreamTest( const Reference < XMultiServiceFactory > & rFactory ) : + explicit ODataStreamTest( const Reference < XMultiServiceFactory > & rFactory ) : m_rFactory( rFactory ) {} @@ -374,7 +374,7 @@ public: m_c( 429 ), m_s( OUString( "foo" ) ) {} - MyPersistObject( const OUString & sServiceName ) : m_sServiceName( sServiceName ) + explicit MyPersistObject( const OUString & sServiceName ) : m_sServiceName( sServiceName ) {} @@ -628,7 +628,7 @@ class OObjectStreamTest : public ODataStreamTest { public: - OObjectStreamTest( const Reference < XMultiServiceFactory > &r) : ODataStreamTest(r) {} + explicit OObjectStreamTest( const Reference < XMultiServiceFactory > &r) : ODataStreamTest(r) {} public: virtual void SAL_CALL testInvariant(const OUString& TestName, diff --git a/io/test/stm/marktest.cxx b/io/test/stm/marktest.cxx index e737f9400c00..c8d2d1997299 100644 --- a/io/test/stm/marktest.cxx +++ b/io/test/stm/marktest.cxx @@ -45,7 +45,7 @@ using namespace ::com::sun::star::test; class OMarkableOutputStreamTest : public WeakImplHelper< XSimpleTest > { public: - OMarkableOutputStreamTest( const Reference< XMultiServiceFactory > & rFactory ); + explicit OMarkableOutputStreamTest( const Reference< XMultiServiceFactory > & rFactory ); ~OMarkableOutputStreamTest(); public: // implementation names @@ -403,7 +403,7 @@ OUString OMarkableOutputStreamTest_getImplementationName() throw () class OMarkableInputStreamTest : public WeakImplHelper< XSimpleTest > { public: - OMarkableInputStreamTest( const Reference< XMultiServiceFactory > & rFactory ); + explicit OMarkableInputStreamTest( const Reference< XMultiServiceFactory > & rFactory ); ~OMarkableInputStreamTest(); public: // implementation names diff --git a/io/test/stm/pipetest.cxx b/io/test/stm/pipetest.cxx index f7dc2d46d5a2..d66b3c751985 100644 --- a/io/test/stm/pipetest.cxx +++ b/io/test/stm/pipetest.cxx @@ -94,7 +94,7 @@ private: class OPipeTest : public WeakImplHelper < XSimpleTest > { public: - OPipeTest( const Reference< XMultiServiceFactory > & rFactory ); + explicit OPipeTest( const Reference< XMultiServiceFactory > & rFactory ); ~OPipeTest(); public: // implementation names diff --git a/io/test/stm/pumptest.cxx b/io/test/stm/pumptest.cxx index b95d54c286c5..ae2a28bebf38 100644 --- a/io/test/stm/pumptest.cxx +++ b/io/test/stm/pumptest.cxx @@ -63,7 +63,7 @@ static void mywait() class OPumpTest : public WeakImplHelper < XSimpleTest > { public: - OPumpTest( const Reference< XMultiServiceFactory > & rFactory ); + explicit OPumpTest( const Reference< XMultiServiceFactory > & rFactory ); ~OPumpTest(); public: // implementation names |