From a941df0f89ab8222ebd22c697e23fb539a3730ed Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 8 Jun 2015 16:17:45 +0100 Subject: cppcheck: noExplicitConstructor Change-Id: Ie2ae923ad4c1a66e779711de6ff05328ef144dac --- comphelper/source/property/MasterPropertySet.cxx | 2 +- comphelper/source/property/genericpropertyset.cxx | 2 +- comphelper/source/property/propagg.cxx | 2 +- comphelper/source/property/propertycontainerhelper.cxx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) (limited to 'comphelper/source/property') diff --git a/comphelper/source/property/MasterPropertySet.cxx b/comphelper/source/property/MasterPropertySet.cxx index f5e9cba48387..87e4ba42c82f 100644 --- a/comphelper/source/property/MasterPropertySet.cxx +++ b/comphelper/source/property/MasterPropertySet.cxx @@ -33,7 +33,7 @@ class AutoOGuardArray std::unique_ptr< osl::Guard< comphelper::SolarMutex > > * mpGuardArray; public: - AutoOGuardArray( sal_Int32 nNumElements ); + explicit AutoOGuardArray( sal_Int32 nNumElements ); ~AutoOGuardArray(); std::unique_ptr< osl::Guard< comphelper::SolarMutex > > & operator[] ( sal_Int32 i ) { return mpGuardArray[i]; } diff --git a/comphelper/source/property/genericpropertyset.cxx b/comphelper/source/property/genericpropertyset.cxx index 2ddb513a7cc9..cf7af4ecfbbe 100644 --- a/comphelper/source/property/genericpropertyset.cxx +++ b/comphelper/source/property/genericpropertyset.cxx @@ -64,7 +64,7 @@ namespace comphelper virtual void _getPropertyValues( const PropertyMapEntry** ppEntries, Any* pValue ) throw( UnknownPropertyException, WrappedTargetException ) SAL_OVERRIDE; public: - GenericPropertySet( PropertySetInfo* pInfo ) throw(); + explicit GenericPropertySet( PropertySetInfo* pInfo ) throw(); virtual ~GenericPropertySet() throw(); // XInterface diff --git a/comphelper/source/property/propagg.cxx b/comphelper/source/property/propagg.cxx index 7abb03d31e59..9d4930c54e3b 100644 --- a/comphelper/source/property/propagg.cxx +++ b/comphelper/source/property/propagg.cxx @@ -356,7 +356,7 @@ namespace internal sal_Int32 m_nCurrentlyForwarding; public: - PropertyForwarder( OPropertySetAggregationHelper& _rAggregationHelper ); + explicit PropertyForwarder( OPropertySetAggregationHelper& _rAggregationHelper ); ~PropertyForwarder(); /** declares that the forwarder should be responsible for the given property diff --git a/comphelper/source/property/propertycontainerhelper.cxx b/comphelper/source/property/propertycontainerhelper.cxx index 8b8f7a691a5a..1d4a91197391 100644 --- a/comphelper/source/property/propertycontainerhelper.cxx +++ b/comphelper/source/property/propertycontainerhelper.cxx @@ -52,7 +52,7 @@ namespace struct PropertyDescriptionNameMatch : public ::std::unary_function< PropertyDescription, bool > { OUString m_rCompare; - PropertyDescriptionNameMatch( const OUString& _rCompare ) : m_rCompare( _rCompare ) { } + explicit PropertyDescriptionNameMatch( const OUString& _rCompare ) : m_rCompare( _rCompare ) { } bool operator() (const PropertyDescription& x ) const { -- cgit v1.2.3