summaryrefslogtreecommitdiff
path: root/connectivity/source/manager
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-06-14 20:57:16 +0100
committerCaolán McNamara <caolanm@redhat.com>2015-06-15 11:11:42 +0100
commit8066c73940a30e97d8634655ea39d73fa8cf3c20 (patch)
tree030b5b52d9d7e67fd21c75f8b49defb4296d3e1e /connectivity/source/manager
parent101b616c7a2ee90b6d09eedd7a7543a63f237c97 (diff)
cppcheck: noExplicitConstructor
Change-Id: I2b5fba9cdd950349a8e8d22bbd7bb6e17f008920
Diffstat (limited to 'connectivity/source/manager')
-rw-r--r--connectivity/source/manager/mdrivermanager.cxx10
-rw-r--r--connectivity/source/manager/mdrivermanager.hxx2
2 files changed, 6 insertions, 6 deletions
diff --git a/connectivity/source/manager/mdrivermanager.cxx b/connectivity/source/manager/mdrivermanager.cxx
index b64e935374da..7f2e7f02c533 100644
--- a/connectivity/source/manager/mdrivermanager.cxx
+++ b/connectivity/source/manager/mdrivermanager.cxx
@@ -68,7 +68,7 @@ class ODriverEnumeration : public ::cppu::WeakImplHelper1< XEnumeration >
protected:
virtual ~ODriverEnumeration();
public:
- ODriverEnumeration(const DriverArray& _rDriverSequence);
+ explicit ODriverEnumeration(const DriverArray& _rDriverSequence);
// XEnumeration
virtual sal_Bool SAL_CALL hasMoreElements( ) throw(RuntimeException, std::exception) SAL_OVERRIDE;
@@ -106,7 +106,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W
/// an STL functor which ensures that a SdbcDriver described by a DriverAccess is loaded
struct EnsureDriver : public ::std::unary_function< DriverAccess, DriverAccess >
{
- EnsureDriver( const Reference< XComponentContext > &rxContext )
+ explicit EnsureDriver( const Reference< XComponentContext > &rxContext )
: mxContext( rxContext ) {}
const DriverAccess& operator()( const DriverAccess& _rDescriptor ) const
@@ -151,7 +151,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W
/// an STL functor which loads a driver described by a DriverAccess, and extracts the SdbcDriver
struct ExtractAfterLoad : public ExtractAfterLoad_BASE
{
- ExtractAfterLoad( const Reference< XComponentContext > &rxContext )
+ explicit ExtractAfterLoad( const Reference< XComponentContext > &rxContext )
: ExtractAfterLoad_BASE( ExtractDriverFromAccess(), EnsureDriver( rxContext ) ) {}
};
@@ -171,7 +171,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W
public:
// ctor
- AcceptsURL( const OUString& _rURL ) : m_rURL( _rURL ) { }
+ explicit AcceptsURL( const OUString& _rURL ) : m_rURL( _rURL ) { }
bool operator()( const Reference<XDriver>& _rDriver ) const
@@ -241,7 +241,7 @@ Any SAL_CALL ODriverEnumeration::nextElement( ) throw(NoSuchElementException, W
struct EqualDriverAccessToName : public ::std::binary_function< DriverAccess, OUString, bool >
{
OUString m_sImplName;
- EqualDriverAccessToName(const OUString& _sImplName) : m_sImplName(_sImplName){}
+ explicit EqualDriverAccessToName(const OUString& _sImplName) : m_sImplName(_sImplName){}
bool operator()( const DriverAccess& lhs)
{
diff --git a/connectivity/source/manager/mdrivermanager.hxx b/connectivity/source/manager/mdrivermanager.hxx
index ec4dea8baeb2..0f40800d2250 100644
--- a/connectivity/source/manager/mdrivermanager.hxx
+++ b/connectivity/source/manager/mdrivermanager.hxx
@@ -77,7 +77,7 @@ namespace drivermanager
sal_Int32 m_nLoginTimeout;
private:
- OSDBCDriverManager(
+ explicit OSDBCDriverManager(
const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxContext );
virtual ~OSDBCDriverManager();