diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 13:56:20 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-26 14:11:12 +0100 |
commit | d2275c825d2300f3f176105058ac70b762bcc115 (patch) | |
tree | f8d373a15f7ec3d2e37fb33999d059b5592e3b76 /toolkit/source | |
parent | 8790303b4c220d0c5dcf78a4c438a385ffe3f030 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I955b04396d27e88ce228f180275955071da83ec6
Diffstat (limited to 'toolkit/source')
-rw-r--r-- | toolkit/source/awt/animatedimagespeer.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/awt/stylesettings.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/controlmodelcontainerbase.cxx | 6 | ||||
-rw-r--r-- | toolkit/source/controls/dialogcontrol.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/formattedcontrol.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/geometrycontrolmodel.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/controls/grid/gridcontrol.hxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/grid/grideventforwarder.hxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/grid/sortablegriddatamodel.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/spinningprogress.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/tkspinbutton.cxx | 4 | ||||
-rw-r--r-- | toolkit/source/controls/tree/treecontrol.hxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrol.cxx | 6 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrolcontainer.cxx | 2 | ||||
-rw-r--r-- | toolkit/source/controls/unocontrols.cxx | 4 |
15 files changed, 23 insertions, 23 deletions
diff --git a/toolkit/source/awt/animatedimagespeer.cxx b/toolkit/source/awt/animatedimagespeer.cxx index b9215fcdbfb4..edc301474144 100644 --- a/toolkit/source/awt/animatedimagespeer.cxx +++ b/toolkit/source/awt/animatedimagespeer.cxx @@ -82,7 +82,7 @@ namespace toolkit { } - CachedImage( OUString const& i_imageURL ) + explicit CachedImage( OUString const& i_imageURL ) :sImageURL( i_imageURL ) ,xGraphic() { @@ -94,7 +94,7 @@ namespace toolkit AnimatedImagesPeer& rAntiImpl; ::std::vector< ::std::vector< CachedImage > > aCachedImageSets; - AnimatedImagesPeer_Data( AnimatedImagesPeer& i_antiImpl ) + explicit AnimatedImagesPeer_Data( AnimatedImagesPeer& i_antiImpl ) :rAntiImpl( i_antiImpl ) ,aCachedImageSets() { diff --git a/toolkit/source/awt/stylesettings.cxx b/toolkit/source/awt/stylesettings.cxx index 360e1618d51f..c3553d5502be 100644 --- a/toolkit/source/awt/stylesettings.cxx +++ b/toolkit/source/awt/stylesettings.cxx @@ -90,7 +90,7 @@ namespace toolkit class StyleMethodGuard { public: - StyleMethodGuard( WindowStyleSettings_Data& i_rData ) + explicit StyleMethodGuard( WindowStyleSettings_Data& i_rData ) { if ( i_rData.pOwningWindow == NULL ) throw DisposedException(); diff --git a/toolkit/source/controls/controlmodelcontainerbase.cxx b/toolkit/source/controls/controlmodelcontainerbase.cxx index 7e70d43324c6..98b953cd5e29 100644 --- a/toolkit/source/controls/controlmodelcontainerbase.cxx +++ b/toolkit/source/controls/controlmodelcontainerbase.cxx @@ -129,7 +129,7 @@ private: const OUString& m_rName; public: - FindControlModel( const OUString& _rName ) : m_rName( _rName ) { } + explicit FindControlModel( const OUString& _rName ) : m_rName( _rName ) { } bool operator()( const ControlModelContainerBase::UnoControlModelHolder& _rCompare ) { @@ -145,7 +145,7 @@ private: ControlModelContainerBase::UnoControlModelHolderList& m_rTargetList; public: - CloneControlModel( ControlModelContainerBase::UnoControlModelHolderList& _rTargetList ) + explicit CloneControlModel( ControlModelContainerBase::UnoControlModelHolderList& _rTargetList ) :m_rTargetList( _rTargetList ) { } @@ -167,7 +167,7 @@ struct CompareControlModel : public ::std::unary_function< ControlModelContainer private: Reference< XControlModel > m_xReference; public: - CompareControlModel( const Reference< XControlModel >& _rxReference ) : m_xReference( _rxReference ) { } + explicit CompareControlModel( const Reference< XControlModel >& _rxReference ) : m_xReference( _rxReference ) { } bool operator()( const ControlModelContainerBase::UnoControlModelHolder& _rCompare ) { diff --git a/toolkit/source/controls/dialogcontrol.cxx b/toolkit/source/controls/dialogcontrol.cxx index afce8f36d903..39404aa69ea5 100644 --- a/toolkit/source/controls/dialogcontrol.cxx +++ b/toolkit/source/controls/dialogcontrol.cxx @@ -156,7 +156,7 @@ protected: // ::cppu::OPropertySetHelper void SAL_CALL setFastPropertyValue_NoBroadcast( sal_Int32 nHandle, const css::uno::Any& rValue ) throw (css::uno::Exception, std::exception) SAL_OVERRIDE; public: - UnoControlDialogModel( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + explicit UnoControlDialogModel( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); UnoControlDialogModel( const UnoControlDialogModel& rModel ); virtual ~UnoControlDialogModel(); diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx index 0f8ab776dce5..2a002ec46677 100644 --- a/toolkit/source/controls/formattedcontrol.cxx +++ b/toolkit/source/controls/formattedcontrol.cxx @@ -291,7 +291,7 @@ namespace toolkit bool& m_rFlag; public: - ResetFlagOnExit( bool& _rFlag ) + explicit ResetFlagOnExit( bool& _rFlag ) :m_rFlag( _rFlag ) { } diff --git a/toolkit/source/controls/geometrycontrolmodel.cxx b/toolkit/source/controls/geometrycontrolmodel.cxx index ac09345fab3b..a5b67972568a 100644 --- a/toolkit/source/controls/geometrycontrolmodel.cxx +++ b/toolkit/source/controls/geometrycontrolmodel.cxx @@ -506,7 +506,7 @@ struct PropertyNameEqual : public ::std::unary_function< Property, bool > { const OUString& m_rCompare; - PropertyNameEqual( const OUString& _rCompare ) : m_rCompare( _rCompare ) { } + explicit PropertyNameEqual( const OUString& _rCompare ) : m_rCompare( _rCompare ) { } bool operator()( const Property& _rLHS ) { @@ -589,7 +589,7 @@ struct Int32Equal : public ::std::unary_function< sal_Int32, bool > { sal_Int32 m_nCompare; - Int32Equal( sal_Int32 _nCompare ) : m_nCompare( _nCompare ) { } + explicit Int32Equal( sal_Int32 _nCompare ) : m_nCompare( _nCompare ) { } bool operator()( sal_Int32 _nLHS ) { diff --git a/toolkit/source/controls/grid/gridcontrol.hxx b/toolkit/source/controls/grid/gridcontrol.hxx index a19d63192753..5b69b22cf0fb 100644 --- a/toolkit/source/controls/grid/gridcontrol.hxx +++ b/toolkit/source/controls/grid/gridcontrol.hxx @@ -47,7 +47,7 @@ protected: ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE; public: - UnoGridModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_factory ); + explicit UnoGridModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_factory ); UnoGridModel( const UnoGridModel& rModel ); UnoControlModel* Clone() const SAL_OVERRIDE; diff --git a/toolkit/source/controls/grid/grideventforwarder.hxx b/toolkit/source/controls/grid/grideventforwarder.hxx index 22a3952abab6..585c11153a77 100644 --- a/toolkit/source/controls/grid/grideventforwarder.hxx +++ b/toolkit/source/controls/grid/grideventforwarder.hxx @@ -43,7 +43,7 @@ namespace toolkit class GridEventForwarder : public GridEventForwarder_Base { public: - GridEventForwarder( UnoGridControl& i_parent ); + explicit GridEventForwarder( UnoGridControl& i_parent ); virtual ~GridEventForwarder(); public: diff --git a/toolkit/source/controls/grid/sortablegriddatamodel.cxx b/toolkit/source/controls/grid/sortablegriddatamodel.cxx index 2ca1297ea9f6..3526251d8e0a 100644 --- a/toolkit/source/controls/grid/sortablegriddatamodel.cxx +++ b/toolkit/source/controls/grid/sortablegriddatamodel.cxx @@ -63,7 +63,7 @@ class SortableGridDataModel :public ::cppu::BaseMutex ,public SortableGridDataModel_PrivateBase { public: - SortableGridDataModel( const css::uno::Reference< css::uno::XComponentContext > & rxContext ); + explicit SortableGridDataModel( const css::uno::Reference< css::uno::XComponentContext > & rxContext ); SortableGridDataModel( SortableGridDataModel const & i_copySource ); bool isInitialized() const { return m_isInitialized; } diff --git a/toolkit/source/controls/spinningprogress.cxx b/toolkit/source/controls/spinningprogress.cxx index 7511f0755305..b2a7fa92b452 100644 --- a/toolkit/source/controls/spinningprogress.cxx +++ b/toolkit/source/controls/spinningprogress.cxx @@ -32,7 +32,7 @@ typedef toolkit::AnimatedImagesControlModel SpinningProgressControlModel_Base; class SpinningProgressControlModel : public SpinningProgressControlModel_Base { public: - SpinningProgressControlModel( css::uno::Reference< css::uno::XComponentContext > const & i_factory ); + explicit SpinningProgressControlModel( css::uno::Reference< css::uno::XComponentContext > const & i_factory ); SpinningProgressControlModel( const SpinningProgressControlModel& i_copySource ); virtual UnoControlModel* Clone() const SAL_OVERRIDE; diff --git a/toolkit/source/controls/tkspinbutton.cxx b/toolkit/source/controls/tkspinbutton.cxx index 95e61961b64a..6ae88b785602 100644 --- a/toolkit/source/controls/tkspinbutton.cxx +++ b/toolkit/source/controls/tkspinbutton.cxx @@ -46,8 +46,8 @@ protected: ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE; public: - UnoSpinButtonModel( const css::uno::Reference< css::uno::XComponentContext >& i_factory ); - UnoSpinButtonModel( const UnoSpinButtonModel& rModel ) : UnoControlModel( rModel ) {;} + explicit UnoSpinButtonModel( const css::uno::Reference< css::uno::XComponentContext >& i_factory ); + UnoSpinButtonModel( const UnoSpinButtonModel& rModel ) : UnoControlModel( rModel ) {;} UnoControlModel* Clone() const SAL_OVERRIDE { return new UnoSpinButtonModel( *this ); } diff --git a/toolkit/source/controls/tree/treecontrol.hxx b/toolkit/source/controls/tree/treecontrol.hxx index dbf2e0c1d64b..361af8064ed3 100644 --- a/toolkit/source/controls/tree/treecontrol.hxx +++ b/toolkit/source/controls/tree/treecontrol.hxx @@ -39,7 +39,7 @@ protected: ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE; public: - UnoTreeModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_factory ); + explicit UnoTreeModel( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& i_factory ); UnoTreeModel( const UnoTreeModel& rModel ); UnoControlModel* Clone() const SAL_OVERRIDE; diff --git a/toolkit/source/controls/unocontrol.cxx b/toolkit/source/controls/unocontrol.cxx index d5c6ebf6da51..b0c2a8b281b9 100644 --- a/toolkit/source/controls/unocontrol.cxx +++ b/toolkit/source/controls/unocontrol.cxx @@ -101,13 +101,13 @@ private: VCLXWindow* m_pLockWindow; public: - inline VclListenerLock( VCLXWindow* _pLockWindow ) - :m_pLockWindow( _pLockWindow ) + explicit VclListenerLock( VCLXWindow* _pLockWindow ) + : m_pLockWindow( _pLockWindow ) { if ( m_pLockWindow ) m_pLockWindow->suspendVclEventListening( ); } - inline ~VclListenerLock( ) + ~VclListenerLock() { if ( m_pLockWindow ) m_pLockWindow->resumeVclEventListening( ); diff --git a/toolkit/source/controls/unocontrolcontainer.cxx b/toolkit/source/controls/unocontrolcontainer.cxx index 675ed753079b..71de06f45efd 100644 --- a/toolkit/source/controls/unocontrolcontainer.cxx +++ b/toolkit/source/controls/unocontrolcontainer.cxx @@ -363,7 +363,7 @@ private: uno::Reference< awt::XControlContainer > mxControlContainer; public: - DialogStepChangedListener( uno::Reference< awt::XControlContainer > xControlContainer ) + explicit DialogStepChangedListener( uno::Reference< awt::XControlContainer > xControlContainer ) : mxControlContainer( xControlContainer ) {} // XEventListener diff --git a/toolkit/source/controls/unocontrols.cxx b/toolkit/source/controls/unocontrols.cxx index bf62b7ca69fb..a495f1488b3f 100644 --- a/toolkit/source/controls/unocontrols.cxx +++ b/toolkit/source/controls/unocontrols.cxx @@ -2136,7 +2136,7 @@ struct ListItem { } - ListItem( const OUString& i_rItemText ) + explicit ListItem( const OUString& i_rItemText ) :ItemText( i_rItemText ) ,ItemImageURL() ,ItemData() @@ -2156,7 +2156,7 @@ struct StripItemData : public ::std::unary_function< ListItem, UnoListItem > struct UnoControlListBoxModel_Data { - UnoControlListBoxModel_Data( UnoControlListBoxModel& i_rAntiImpl ) + explicit UnoControlListBoxModel_Data( UnoControlListBoxModel& i_rAntiImpl ) :m_bSettingLegacyProperty( false ) ,m_rAntiImpl( i_rAntiImpl ) ,m_aListItems() |