Kaydet (Commit) ff3a3bfd authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: noExplicitConstructor

Change-Id: Ib9373a5a75eea998a86156ff742e7950369ddc88
üst 63c29ff0
......@@ -228,7 +228,7 @@ class UnaryFunctionExpression : public ExpressionNode
ExpressionNodeSharedPtr mpArg;
public:
UnaryFunctionExpression( const ExpressionNodeSharedPtr& rArg ) :
explicit UnaryFunctionExpression( const ExpressionNodeSharedPtr& rArg ) :
mpArg( rArg )
{
}
......
......@@ -60,7 +60,7 @@ namespace dbmm
,public MacroMigrationModuleClient
{
public:
MacroMigrationDialogService( const Reference< XComponentContext >& _rxContext );
explicit MacroMigrationDialogService( const Reference< XComponentContext >& _rxContext );
// XTypeProvider
virtual Sequence< sal_Int8 > SAL_CALL getImplementationId() throw(RuntimeException, std::exception) SAL_OVERRIDE;
......
......@@ -430,7 +430,7 @@ namespace dbmm
class DrawPageIterator
{
public:
DrawPageIterator( const Reference< XModel >& _rxDocument )
explicit DrawPageIterator( const Reference< XModel >& _rxDocument )
:m_xDocument( _rxDocument )
,m_nPageCount( 0 )
,m_nCurrentPage( 0 )
......@@ -518,7 +518,7 @@ namespace dbmm
class FormComponentIterator
{
public:
FormComponentIterator( const Reference< XIndexAccess >& _rxContainer )
explicit FormComponentIterator( const Reference< XIndexAccess >& _rxContainer )
:m_xContainer( _rxContainer )
,m_xEventManager( _rxContainer, UNO_QUERY_THROW )
,m_nElementCount( _rxContainer->getCount() )
......@@ -557,7 +557,7 @@ namespace dbmm
class ScriptsStorage
{
public:
ScriptsStorage( MigrationLog& _rLogger );
explicit ScriptsStorage( MigrationLog& _rLogger );
ScriptsStorage( const Reference< XModel >& _rxDocument, MigrationLog& _rLogger );
~ScriptsStorage();
......@@ -770,7 +770,7 @@ namespace dbmm
class PhaseGuard
{
public:
PhaseGuard( ProgressMixer& _rMixer )
explicit PhaseGuard( ProgressMixer& _rMixer )
:m_rMixer( _rMixer )
{
}
......
......@@ -65,7 +65,7 @@ namespace dbmm
::std::vector< OUString > aErrorDetails;
const ::com::sun::star::uno::Any aCaughtException;
MigrationError(
explicit MigrationError(
const MigrationErrorType _eType )
:eType( _eType )
{
......
......@@ -49,7 +49,7 @@ namespace dbmm
{
}
PhaseData( const PhaseWeight _nWeight )
explicit PhaseData( const PhaseWeight _nWeight )
:nWeight( _nWeight )
,nRange(100)
,nGlobalStart(0)
......@@ -69,7 +69,7 @@ namespace dbmm
double nOverallStretch;
IProgressConsumer& rConsumer;
ProgressMixer_Data( IProgressConsumer& _rConsumer )
explicit ProgressMixer_Data( IProgressConsumer& _rConsumer )
:aPhases()
,pCurrentPhase( aPhases.end() )
,nWeightSum( 0 )
......
......@@ -50,7 +50,7 @@ namespace dbmm
class ProgressMixer
{
public:
ProgressMixer( IProgressConsumer& _rConsumer );
explicit ProgressMixer( IProgressConsumer& _rConsumer );
~ProgressMixer();
/** registers a phase of the process, which has the given weight
......
......@@ -31,7 +31,7 @@ namespace dbmm
class RangeProgressBar
{
public:
RangeProgressBar(ProgressBar *pBar = NULL)
explicit RangeProgressBar(ProgressBar *pBar = NULL)
: m_pBar(pBar)
, m_nRange(0)
{
......
......@@ -97,7 +97,7 @@ class DBTypeDetection : public ::cppu::WeakImplHelper< XExtendedFilterDetection,
const Reference< XComponentContext > m_aContext;
public:
DBTypeDetection(const Reference< XComponentContext >&);
explicit DBTypeDetection(const Reference< XComponentContext >&);
// XServiceInfo
OUString SAL_CALL getImplementationName() throw(std::exception ) SAL_OVERRIDE;
......@@ -233,7 +233,7 @@ private:
DECL_LINK( OnStartTableWizard, void* );
public:
DBContentLoader(const Reference< XComponentContext >&);
explicit DBContentLoader(const Reference< XComponentContext >&);
virtual ~DBContentLoader();
// XServiceInfo
......
......@@ -40,7 +40,7 @@ namespace dbaxml
) const SAL_OVERRIDE;
public:
OXMLAutoStylePoolP(ODBExport& rXMLExport);
explicit OXMLAutoStylePoolP(ODBExport& rXMLExport);
virtual ~OXMLAutoStylePoolP();
};
} // dbaxml
......
......@@ -167,7 +167,7 @@ namespace dbaxml
class OSpecialHandleXMLExportPropertyMapper : public SvXMLExportPropertyMapper
{
public:
OSpecialHandleXMLExportPropertyMapper(const rtl::Reference< XMLPropertySetMapper >& rMapper) : SvXMLExportPropertyMapper(rMapper )
explicit OSpecialHandleXMLExportPropertyMapper(const rtl::Reference< XMLPropertySetMapper >& rMapper) : SvXMLExportPropertyMapper(rMapper )
{
}
/** this method is called for every item that has the
......
......@@ -106,7 +106,7 @@ protected:
virtual ~ODBFilter() throw();
public:
ODBFilter( const Reference< XComponentContext >& _rxContext );
explicit ODBFilter( const Reference< XComponentContext >& _rxContext );
// XFilter
virtual sal_Bool SAL_CALL filter( const Sequence< PropertyValue >& rDescriptor ) throw(RuntimeException, std::exception) SAL_OVERRIDE;
......
......@@ -59,7 +59,7 @@ namespace sdbtools
class EntryGuard;
protected:
ConnectionDependentComponent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & _rContext )
explicit ConnectionDependentComponent( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > & _rContext )
:m_aContext( _rContext )
{
}
......@@ -117,7 +117,7 @@ namespace sdbtools
ConnectionDependentComponent& m_rComponent;
public:
EntryGuard( ConnectionDependentComponent& _rComponent )
explicit EntryGuard( ConnectionDependentComponent& _rComponent )
:m_aMutexGuard( _rComponent.getMutex( ConnectionDependentComponent::GuardAccess() ) )
,m_rComponent( _rComponent )
{
......
......@@ -53,7 +53,7 @@ namespace sdbtools
@param _rxContext
the context of the component
*/
ConnectionTools( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rContext );
explicit ConnectionTools( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rContext );
// XConnectionTools
virtual ::com::sun::star::uno::Reference< ::com::sun::star::sdb::tools::XTableName > SAL_CALL createTableName() throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
......
......@@ -188,7 +188,7 @@ Reference< XInterface > SAL_CALL OApplicationController::Create(const Reference<
struct XContainerFunctor : public ::std::unary_function< OApplicationController::TContainerVector::value_type , bool>
{
Reference<XContainerListener> m_xContainerListener;
XContainerFunctor( const Reference<XContainerListener>& _xContainerListener)
explicit XContainerFunctor( const Reference<XContainerListener>& _xContainerListener)
: m_xContainerListener(_xContainerListener){}
bool operator() (const OApplicationController::TContainerVector::value_type& lhs) const
......@@ -267,7 +267,7 @@ public:
class SelectionGuard : public ::boost::noncopyable
{
public:
SelectionGuard( SelectionNotifier& _rNotifier )
explicit SelectionGuard( SelectionNotifier& _rNotifier )
:m_rNotifier( _rNotifier )
{
m_rNotifier.enterSelection( SelectionNotifier::SelectionGuardAccess() );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment