diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-10-07 14:36:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-10-07 15:11:03 +0100 |
commit | 7ba7a974f6d9f4b265e72b8e91c5a175bc3a3b14 (patch) | |
tree | 6db04a6adf3f9607683e160cf698bf24a2838db5 /forms | |
parent | 74010f1c502a4bd7eb1ef3ee3d0e8c45a1c9afee (diff) |
cppcheck: noExplicitConstructor
Change-Id: I32c6728ce7423fd997cdbec66feb8a6ba39948d2
Diffstat (limited to 'forms')
37 files changed, 54 insertions, 54 deletions
diff --git a/forms/source/component/CheckBox.hxx b/forms/source/component/CheckBox.hxx index 1468cb06bb68..9971367fdb24 100644 --- a/forms/source/component/CheckBox.hxx +++ b/forms/source/component/CheckBox.hxx @@ -64,7 +64,7 @@ protected: class OCheckBoxControl : public OBoundControl { public: - OCheckBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); + explicit OCheckBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); // XServiceInfo OUString SAL_CALL getImplementationName() diff --git a/forms/source/component/Columns.hxx b/forms/source/component/Columns.hxx index f352ba49f113..c67f431f5703 100644 --- a/forms/source/component/Columns.hxx +++ b/forms/source/component/Columns.hxx @@ -63,7 +63,7 @@ protected: public: OGridColumn(const css::uno::Reference<css::uno::XComponentContext>& _rContext, const OUString& _sModelName = OUString()); - OGridColumn(const OGridColumn* _pOriginal ); + explicit OGridColumn(const OGridColumn* _pOriginal ); virtual ~OGridColumn(); // UNO binding @@ -119,8 +119,8 @@ class ClassName ,public OAggregationArrayUsageHelper< ClassName > \ { \ public: \ - ClassName(const css::uno::Reference<css::uno::XComponentContext>& _rContext ); \ - ClassName(const ClassName* _pCloneFrom); \ + explicit ClassName(const css::uno::Reference<css::uno::XComponentContext>& _rContext ); \ + explicit ClassName(const ClassName* _pCloneFrom); \ \ virtual css::uno::Reference< css::beans::XPropertySetInfo> SAL_CALL getPropertySetInfo() throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; \ virtual ::cppu::IPropertyArrayHelper& SAL_CALL getInfoHelper() SAL_OVERRIDE; \ diff --git a/forms/source/component/ComboBox.hxx b/forms/source/component/ComboBox.hxx index 454cf88c96a6..ee48b9b67ee4 100644 --- a/forms/source/component/ComboBox.hxx +++ b/forms/source/component/ComboBox.hxx @@ -142,7 +142,7 @@ protected: class OComboBoxControl : public OBoundControl { public: - OComboBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); + explicit OComboBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); // XServiceInfo OUString SAL_CALL getImplementationName() diff --git a/forms/source/component/Currency.hxx b/forms/source/component/Currency.hxx index 6e6d56b2b376..ce13dab89e18 100644 --- a/forms/source/component/Currency.hxx +++ b/forms/source/component/Currency.hxx @@ -73,7 +73,7 @@ protected: virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE; public: - OCurrencyControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); + explicit OCurrencyControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); // css::lang::XServiceInfo OUString SAL_CALL getImplementationName() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE diff --git a/forms/source/component/DatabaseForm.cxx b/forms/source/component/DatabaseForm.cxx index a4438c77b3de..b11d663c3f84 100644 --- a/forms/source/component/DatabaseForm.cxx +++ b/forms/source/component/DatabaseForm.cxx @@ -122,7 +122,7 @@ namespace frm class DocumentModifyGuard { public: - DocumentModifyGuard( const Reference< XInterface >& _rxFormComponent ) + explicit DocumentModifyGuard( const Reference< XInterface >& _rxFormComponent ) :m_xDocumentModify( getXModel( _rxFormComponent ), UNO_QUERY ) { impl_changeModifiableFlag_nothrow( false ); @@ -167,7 +167,7 @@ protected: public: - OFormSubmitResetThread(ODatabaseForm* pControl) : OComponentEventThread(pControl) { } + explicit OFormSubmitResetThread(ODatabaseForm* pControl) : OComponentEventThread(pControl) { } }; diff --git a/forms/source/component/DatabaseForm.hxx b/forms/source/component/DatabaseForm.hxx index 8deeb00a95b1..acdc4beedf63 100644 --- a/forms/source/component/DatabaseForm.hxx +++ b/forms/source/component/DatabaseForm.hxx @@ -218,7 +218,7 @@ class ODatabaseForm :public OFormComponents bool m_bSharingConnection : 1; // sal_True if the connection we're using is shared with out parent public: - ODatabaseForm(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit ODatabaseForm(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); ODatabaseForm( const ODatabaseForm& _cloneSource ); virtual ~ODatabaseForm(); diff --git a/forms/source/component/Date.hxx b/forms/source/component/Date.hxx index 2e46601e9887..c817a7039327 100644 --- a/forms/source/component/Date.hxx +++ b/forms/source/component/Date.hxx @@ -95,7 +95,7 @@ protected: virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE; public: - ODateControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit ODateControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); DECLARE_UNO3_AGG_DEFAULTS(ODateControl, OBoundControl) // css::lang::XServiceInfo diff --git a/forms/source/component/Edit.hxx b/forms/source/component/Edit.hxx index c18402a7d45e..4384d2ed163f 100644 --- a/forms/source/component/Edit.hxx +++ b/forms/source/component/Edit.hxx @@ -131,7 +131,7 @@ class OEditControl : public OBoundControl ImplSVEvent * m_nKeyEvent; public: - OEditControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); + explicit OEditControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); virtual ~OEditControl(); DECLARE_UNO3_AGG_DEFAULTS(OEditControl, OBoundControl) diff --git a/forms/source/component/EventThread.hxx b/forms/source/component/EventThread.hxx index 83ccfa2e698a..a447b25a3d72 100644 --- a/forms/source/component/EventThread.hxx +++ b/forms/source/component/EventThread.hxx @@ -86,7 +86,7 @@ public: DECLARE_UNO3_DEFAULTS(OComponentEventThread, OWeakObject) virtual css::uno::Any SAL_CALL queryInterface(const css::uno::Type& _rType) throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE; - OComponentEventThread(::cppu::OComponentHelper* pCompImpl); + explicit OComponentEventThread(::cppu::OComponentHelper* pCompImpl); virtual ~OComponentEventThread(); void addEvent( const css::lang::EventObject* _pEvt, bool bFlag = false ); diff --git a/forms/source/component/Filter.hxx b/forms/source/component/Filter.hxx index ebbb04a258ee..8ce33689ce85 100644 --- a/forms/source/component/Filter.hxx +++ b/forms/source/component/Filter.hxx @@ -84,7 +84,7 @@ namespace frm void initControlModel(css::uno::Reference< css::beans::XPropertySet >& xControlModel); public: - OFilterControl( const css::uno::Reference< css::uno::XComponentContext >& _rxORB ); + explicit OFilterControl( const css::uno::Reference< css::uno::XComponentContext >& _rxORB ); DECLARE_UNO3_AGG_DEFAULTS(OFilterControl,OWeakAggObject) css::uno::Any SAL_CALL queryAggregation( const css::uno::Type & rType ) throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE; diff --git a/forms/source/component/FormComponent.cxx b/forms/source/component/FormComponent.cxx index 6b653b478a18..f9e67b9c4c04 100644 --- a/forms/source/component/FormComponent.cxx +++ b/forms/source/component/FormComponent.cxx @@ -95,9 +95,9 @@ void ControlModelLock::addPropertyNotification( const sal_Int32 _nHandle, const class FieldChangeNotifier { public: - FieldChangeNotifier( ControlModelLock& _rLock ) - :m_rLock( _rLock ) - ,m_rModel( dynamic_cast< OBoundControlModel& >( _rLock.getModel() ) ) + explicit FieldChangeNotifier(ControlModelLock& _rLock) + : m_rLock( _rLock ) + , m_rModel( dynamic_cast< OBoundControlModel& >( _rLock.getModel() ) ) { m_xOldField = m_rModel.getField(); } diff --git a/forms/source/component/FormattedField.hxx b/forms/source/component/FormattedField.hxx index f2f33bc526fd..55a4082ba294 100644 --- a/forms/source/component/FormattedField.hxx +++ b/forms/source/component/FormattedField.hxx @@ -152,7 +152,7 @@ class OFormattedModel ImplSVEvent * m_nKeyEvent; public: - OFormattedControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); + explicit OFormattedControl(const css::uno::Reference< css::uno::XComponentContext>& _rxContext); virtual ~OFormattedControl(); DECLARE_UNO3_AGG_DEFAULTS(OFormattedControl, OBoundControl) diff --git a/forms/source/component/FormsCollection.hxx b/forms/source/component/FormsCollection.hxx index e2633fbd04cc..16377d0f6bca 100644 --- a/forms/source/component/FormsCollection.hxx +++ b/forms/source/component/FormsCollection.hxx @@ -49,7 +49,7 @@ class OFormsCollection css::uno::Reference<css::uno::XInterface> m_xParent; // Parent public: - OFormsCollection(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit OFormsCollection(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); OFormsCollection( const OFormsCollection& _cloneSource ); virtual ~OFormsCollection(); diff --git a/forms/source/component/GroupBox.hxx b/forms/source/component/GroupBox.hxx index b3684df5ee59..0f496d56609d 100644 --- a/forms/source/component/GroupBox.hxx +++ b/forms/source/component/GroupBox.hxx @@ -61,7 +61,7 @@ protected: class OGroupBoxControl : public OControl { public: - OGroupBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit OGroupBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); // XServiceInfo OUString SAL_CALL getImplementationName() diff --git a/forms/source/component/GroupManager.hxx b/forms/source/component/GroupManager.hxx index 42fc607a6961..eee2fd0fabe0 100644 --- a/forms/source/component/GroupManager.hxx +++ b/forms/source/component/GroupManager.hxx @@ -142,7 +142,7 @@ class OGroup friend class OGroupLess; public: - OGroup( const OUString& rGroupName ); + explicit OGroup(const OUString& rGroupName); virtual ~OGroup(); bool operator==( const OGroup& rGroup ) const; @@ -176,7 +176,7 @@ class OGroupManager : public ::cppu::WeakImplHelper< css::beans::XPropertyChange void removeFromGroupMap(const OUString& _sGroupName,const css::uno::Reference< css::beans::XPropertySet>& _xSet); public: - OGroupManager(const css::uno::Reference< css::container::XContainer >& _rxContainer); + explicit OGroupManager(const css::uno::Reference< css::container::XContainer >& _rxContainer); virtual ~OGroupManager(); // css::lang::XEventListener diff --git a/forms/source/component/ImageButton.hxx b/forms/source/component/ImageButton.hxx index 671e256ff8f7..6a108afaef06 100644 --- a/forms/source/component/ImageButton.hxx +++ b/forms/source/component/ImageButton.hxx @@ -63,7 +63,7 @@ protected: virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE; public: - OImageButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit OImageButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); // XServiceInfo OUString SAL_CALL getImplementationName() diff --git a/forms/source/component/ImageControl.hxx b/forms/source/component/ImageControl.hxx index df17da40be49..699c41b1fa34 100644 --- a/forms/source/component/ImageControl.hxx +++ b/forms/source/component/ImageControl.hxx @@ -156,7 +156,7 @@ private: virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE; public: - OImageControlControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit OImageControlControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); // UNO DECLARE_UNO3_AGG_DEFAULTS( OImageControlControl, OBoundControl ) diff --git a/forms/source/component/ListBox.cxx b/forms/source/component/ListBox.cxx index 5cf73b084518..24e456ffa61e 100644 --- a/forms/source/component/ListBox.cxx +++ b/forms/source/component/ListBox.cxx @@ -96,7 +96,7 @@ namespace frm struct AppendRowSetValueString : public ::std::unary_function< OUString, void > { - AppendRowSetValueString( OUString& _string ) + explicit AppendRowSetValueString( OUString& _string ) :m_string( _string ) { } @@ -1434,7 +1434,7 @@ namespace frm const Sequence< OUString >& m_rList; public: - ExtractStringFromSequence_Safe( const Sequence< OUString >& _rList ) : m_rList( _rList ) { } + explicit ExtractStringFromSequence_Safe( const Sequence< OUString >& _rList ) : m_rList( _rList ) { } OUString operator ()( sal_Int16 _nIndex ) { @@ -1485,7 +1485,7 @@ namespace frm const ValueList& m_rList; public: - ExtractAnyFromValueList_Safe( const ValueList& _rList ) : m_rList( _rList ) { } + explicit ExtractAnyFromValueList_Safe( const ValueList& _rList ) : m_rList( _rList ) { } Any operator ()( sal_Int16 _nIndex ) { diff --git a/forms/source/component/ListBox.hxx b/forms/source/component/ListBox.hxx index 7776d4c2153b..e99e486ee785 100644 --- a/forms/source/component/ListBox.hxx +++ b/forms/source/component/ListBox.hxx @@ -269,7 +269,7 @@ protected: virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE; public: - OListBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit OListBoxControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); virtual ~OListBoxControl(); // UNO Anbindung diff --git a/forms/source/component/Numeric.hxx b/forms/source/component/Numeric.hxx index ed9d724eaa0e..eb048467a187 100644 --- a/forms/source/component/Numeric.hxx +++ b/forms/source/component/Numeric.hxx @@ -72,7 +72,7 @@ protected: virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE; public: - ONumericControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit ONumericControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); // css::lang::XServiceInfo OUString SAL_CALL getImplementationName() diff --git a/forms/source/component/Pattern.hxx b/forms/source/component/Pattern.hxx index 97d68100e6bf..85404d6f7b03 100644 --- a/forms/source/component/Pattern.hxx +++ b/forms/source/component/Pattern.hxx @@ -79,7 +79,7 @@ protected: virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE; public: - OPatternControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit OPatternControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); // css::lang::XServiceInfo OUString SAL_CALL getImplementationName() diff --git a/forms/source/component/RadioButton.hxx b/forms/source/component/RadioButton.hxx index 7a409742f5d1..7f894c35f888 100644 --- a/forms/source/component/RadioButton.hxx +++ b/forms/source/component/RadioButton.hxx @@ -75,7 +75,7 @@ private: class ORadioButtonControl: public OBoundControl { public: - ORadioButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit ORadioButtonControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); // XServiceInfo OUString SAL_CALL getImplementationName() diff --git a/forms/source/component/Time.hxx b/forms/source/component/Time.hxx index 4fe59e7c1f61..c7da88c3b9ab 100644 --- a/forms/source/component/Time.hxx +++ b/forms/source/component/Time.hxx @@ -94,7 +94,7 @@ protected: virtual css::uno::Sequence< css::uno::Type> _getTypes() SAL_OVERRIDE; public: - OTimeControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); + explicit OTimeControl(const css::uno::Reference< css::uno::XComponentContext>& _rxFactory); DECLARE_UNO3_AGG_DEFAULTS(OTimeControl, OBoundControl) // css::lang::XServiceInfo diff --git a/forms/source/component/clickableimage.hxx b/forms/source/component/clickableimage.hxx index 1b852ddedc62..eb6c8cd535d6 100644 --- a/forms/source/component/clickableimage.hxx +++ b/forms/source/component/clickableimage.hxx @@ -162,7 +162,7 @@ namespace frm typedef ::osl::MutexGuard GuardBase; public: - ImageModelMethodGuard( OClickableImageBaseModel& _rModel ) + explicit ImageModelMethodGuard( OClickableImageBaseModel& _rModel ) :GuardBase( _rModel.getMutex( OClickableImageBaseModel::GuardAccess() ) ) { if ( NULL == _rModel.getImageProducer( OClickableImageBaseModel::GuardAccess() ) ) @@ -271,7 +271,7 @@ namespace frm bool ) SAL_OVERRIDE; public: - OImageProducerThread_Impl( OClickableImageBaseControl *pControl ) : + explicit OImageProducerThread_Impl( OClickableImageBaseControl *pControl ) : OComponentEventThread( pControl ) {} diff --git a/forms/source/component/entrylisthelper.hxx b/forms/source/component/entrylisthelper.hxx index 7f6c5c07be6c..b9569936be29 100644 --- a/forms/source/component/entrylisthelper.hxx +++ b/forms/source/component/entrylisthelper.hxx @@ -58,7 +58,7 @@ namespace frm protected: - OEntryListHelper( OControlModel& _rControlModel ); + explicit OEntryListHelper( OControlModel& _rControlModel ); OEntryListHelper( const OEntryListHelper& _rSource, OControlModel& _rControlModel ); virtual ~OEntryListHelper( ); diff --git a/forms/source/component/errorbroadcaster.hxx b/forms/source/component/errorbroadcaster.hxx index f5846af5c8d2..03d3b813adf6 100644 --- a/forms/source/component/errorbroadcaster.hxx +++ b/forms/source/component/errorbroadcaster.hxx @@ -40,7 +40,7 @@ namespace frm ::cppu::OInterfaceContainerHelper m_aErrorListeners; protected: - OErrorBroadcaster( ::cppu::OBroadcastHelper& _rBHelper ); + explicit OErrorBroadcaster( ::cppu::OBroadcastHelper& _rBHelper ); virtual ~OErrorBroadcaster( ); void SAL_CALL disposing(); diff --git a/forms/source/component/imgprod.cxx b/forms/source/component/imgprod.cxx index 3872abc01e05..81c29d3f905c 100644 --- a/forms/source/component/imgprod.cxx +++ b/forms/source/component/imgprod.cxx @@ -42,8 +42,8 @@ class ImgProdLockBytes : public SvLockBytes public: - ImgProdLockBytes( SvStream* pStm, bool bOwner ); - ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > & rStreamRef ); + ImgProdLockBytes( SvStream* pStm, bool bOwner ); + explicit ImgProdLockBytes( css::uno::Reference< css::io::XInputStream > & rStreamRef ); virtual ~ImgProdLockBytes(); virtual ErrCode ReadAt( sal_uInt64 nPos, void* pBuffer, sal_Size nCount, sal_Size * pRead ) const SAL_OVERRIDE; diff --git a/forms/source/richtext/clipboarddispatcher.hxx b/forms/source/richtext/clipboarddispatcher.hxx index 6bf95259a4b9..b0d0569654eb 100644 --- a/forms/source/richtext/clipboarddispatcher.hxx +++ b/forms/source/richtext/clipboarddispatcher.hxx @@ -69,7 +69,7 @@ namespace frm bool m_bPastePossible; public: - OPasteClipboardDispatcher( EditView& _rView ); + explicit OPasteClipboardDispatcher( EditView& _rView ); protected: virtual ~OPasteClipboardDispatcher(); diff --git a/forms/source/richtext/richtextengine.hxx b/forms/source/richtext/richtextengine.hxx index 98ddf5e3d242..528a2d37e3a2 100644 --- a/forms/source/richtext/richtextengine.hxx +++ b/forms/source/richtext/richtextengine.hxx @@ -60,7 +60,7 @@ namespace frm protected: /** constructs a new RichTextEngine. The instances takes the ownership of the given SfxItemPool */ - RichTextEngine( SfxItemPool* _pPool ); + explicit RichTextEngine( SfxItemPool* _pPool ); private: RichTextEngine( const RichTextEngine& ) SAL_DELETED_FUNCTION; diff --git a/forms/source/richtext/richtextviewport.hxx b/forms/source/richtext/richtextviewport.hxx index f6f380e21c7f..59d670449fa1 100644 --- a/forms/source/richtext/richtextviewport.hxx +++ b/forms/source/richtext/richtextviewport.hxx @@ -33,7 +33,7 @@ namespace frm bool m_bHideInactiveSelection; public: - RichTextViewPort( vcl::Window* _pParent ); + explicit RichTextViewPort( vcl::Window* _pParent ); void setView( EditView& _rView ); diff --git a/forms/source/richtext/rtattributehandler.hxx b/forms/source/richtext/rtattributehandler.hxx index 15a9b12a867e..6555369a41cf 100644 --- a/forms/source/richtext/rtattributehandler.hxx +++ b/forms/source/richtext/rtattributehandler.hxx @@ -88,7 +88,7 @@ namespace frm SvxAdjust m_eAdjust; public: - ParaAlignmentHandler( AttributeId _nAttributeId ); + explicit ParaAlignmentHandler( AttributeId _nAttributeId ); public: virtual AttributeCheckState implGetCheckState( const SfxPoolItem& _rItem ) const SAL_OVERRIDE; @@ -101,7 +101,7 @@ namespace frm sal_uInt16 m_nLineSpace; public: - LineSpacingHandler( AttributeId _nAttributeId ); + explicit LineSpacingHandler( AttributeId _nAttributeId ); public: virtual AttributeCheckState implGetCheckState( const SfxPoolItem& _rItem ) const SAL_OVERRIDE; @@ -114,7 +114,7 @@ namespace frm SvxEscapement m_eEscapement; public: - EscapementHandler( AttributeId _nAttributeId ); + explicit EscapementHandler( AttributeId _nAttributeId ); public: virtual AttributeCheckState implGetCheckState( const SfxPoolItem& _rItem ) const SAL_OVERRIDE; @@ -162,7 +162,7 @@ namespace frm SvxAdjust m_eOppositeDefaultAdjustment; public: - ParagraphDirectionHandler( AttributeId _nAttributeId ); + explicit ParagraphDirectionHandler( AttributeId _nAttributeId ); public: virtual AttributeCheckState implGetCheckState( const SfxPoolItem& _rItem ) const SAL_OVERRIDE; diff --git a/forms/source/runtime/formoperations.hxx b/forms/source/runtime/formoperations.hxx index 7ec21d0ede32..0c1b984d3682 100644 --- a/forms/source/runtime/formoperations.hxx +++ b/forms/source/runtime/formoperations.hxx @@ -77,7 +77,7 @@ namespace frm #endif public: - FormOperations( const css::uno::Reference< css::uno::XComponentContext >& _rxContext ); + explicit FormOperations( const css::uno::Reference< css::uno::XComponentContext >& _rxContext ); // XServiceInfo - static versions static OUString getImplementationName_Static( ) throw(css::uno::RuntimeException); @@ -351,7 +351,7 @@ namespace frm bool m_bCleared; public: - inline MethodGuard( FormOperations& _rOwner ) + explicit MethodGuard( FormOperations& _rOwner ) :m_rOwner( _rOwner ) ,m_bCleared( false ) { diff --git a/forms/source/solar/component/navbarcontrol.hxx b/forms/source/solar/component/navbarcontrol.hxx index 8e776102e033..3d1039687fef 100644 --- a/forms/source/solar/component/navbarcontrol.hxx +++ b/forms/source/solar/component/navbarcontrol.hxx @@ -44,7 +44,7 @@ namespace frm { css::uno::Reference< css::uno::XComponentContext > m_xContext; public: - ONavigationBarControl( + explicit ONavigationBarControl( const css::uno::Reference< css::uno::XComponentContext >& _rxORB ); @@ -95,7 +95,7 @@ namespace frm ); protected: - ONavigationBarPeer( + explicit ONavigationBarPeer( const css::uno::Reference< css::uno::XComponentContext >& _rxORB ); virtual ~ONavigationBarPeer(); diff --git a/forms/source/solar/control/navtoolbar.cxx b/forms/source/solar/control/navtoolbar.cxx index d10d4484e2e0..3831bfc2c62f 100644 --- a/forms/source/solar/control/navtoolbar.cxx +++ b/forms/source/solar/control/navtoolbar.cxx @@ -101,7 +101,7 @@ namespace frm const IFeatureDispatcher* m_pDispatcher; public: - ImplNavToolBar( vcl::Window* _pParent ) + explicit ImplNavToolBar( vcl::Window* _pParent ) :ToolBox( _pParent, WB_3DLOOK ) ,m_pDispatcher( NULL ) { diff --git a/forms/source/xforms/datatypes.hxx b/forms/source/xforms/datatypes.hxx index 407a2e27ea65..e4ab9cc04aab 100644 --- a/forms/source/xforms/datatypes.hxx +++ b/forms/source/xforms/datatypes.hxx @@ -246,7 +246,7 @@ namespace xforms class OBooleanType : public OBooleanType_Base { public: - OBooleanType( const OUString& _rName ); + explicit OBooleanType( const OUString& _rName ); protected: DECLARE_DEFAULT_CLONING( OBooleanType ) @@ -318,7 +318,7 @@ namespace xforms class classname : public classname##_Base \ { \ public: \ - classname( const OUString& _rName ); \ + explicit classname( const OUString& _rName ); \ \ protected: \ DECLARE_DEFAULT_CLONING( classname ) \ diff --git a/forms/source/xforms/enumeration.hxx b/forms/source/xforms/enumeration.hxx index 59eec1c01406..8a7a9931f4de 100644 --- a/forms/source/xforms/enumeration.hxx +++ b/forms/source/xforms/enumeration.hxx @@ -41,7 +41,7 @@ class Enumeration sal_Int32 mnIndex; public: - Enumeration( css::container::XIndexAccess* ); + explicit Enumeration( css::container::XIndexAccess* ); virtual sal_Bool SAL_CALL hasMoreElements() throw( css::uno::RuntimeException, std::exception ) SAL_OVERRIDE; diff --git a/forms/source/xforms/model_helper.hxx b/forms/source/xforms/model_helper.hxx index 9191c0ddf49a..97e0138844fa 100644 --- a/forms/source/xforms/model_helper.hxx +++ b/forms/source/xforms/model_helper.hxx @@ -52,7 +52,7 @@ class BindingCollection : public NamedCollection<css::uno::Reference<css::beans: Model* mpModel; public: - BindingCollection( Model* pModel ) : mpModel( pModel ) {} + explicit BindingCollection( Model* pModel ) : mpModel( pModel ) {} virtual ~BindingCollection() {} virtual bool isValid( const T& t ) const SAL_OVERRIDE @@ -79,7 +79,7 @@ class SubmissionCollection : public NamedCollection<css::uno::Reference<css::bea Model* mpModel; public: - SubmissionCollection( Model* pModel ) : mpModel( pModel ) {} + explicit SubmissionCollection( Model* pModel ) : mpModel( pModel ) {} virtual ~SubmissionCollection() {} public: |