diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-05-27 10:53:55 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-05-27 13:54:54 +0100 |
commit | afe5672fbc87ae2bc7fb72fac4bb5b837b646dea (patch) | |
tree | 1e78a6dcce4c7313ab4d9109b53077e687909606 /svx | |
parent | 77c47fc79c1c8096c19a81a0d320e75b84857144 (diff) |
cppcheck: noExplicitConstructor
Change-Id: I27c24d3284a8e0678fc5c041426b4a7e71cbd363
Diffstat (limited to 'svx')
76 files changed, 136 insertions, 154 deletions
diff --git a/svx/source/accessibility/AccessibleTextHelper.cxx b/svx/source/accessibility/AccessibleTextHelper.cxx index e6b07da01a7a..d61257ccd41e 100644 --- a/svx/source/accessibility/AccessibleTextHelper.cxx +++ b/svx/source/accessibility/AccessibleTextHelper.cxx @@ -348,7 +348,7 @@ namespace accessibility class AccessibleTextHelper_OffsetChildIndex : public ::std::unary_function< ::accessibility::AccessibleEditableTextPara&, void > { public: - AccessibleTextHelper_OffsetChildIndex( sal_Int32 nDifference ) : mnDifference(nDifference) {} + explicit AccessibleTextHelper_OffsetChildIndex( sal_Int32 nDifference ) : mnDifference(nDifference) {} void operator()( ::accessibility::AccessibleEditableTextPara& rPara ) { rPara.SetIndexInParent( rPara.GetIndexInParent() + mnDifference ); @@ -848,7 +848,7 @@ namespace accessibility ::accessibility::AccessibleParaManager::WeakChild > { public: - AccessibleTextHelper_UpdateChildBounds( AccessibleTextHelper_Impl& rImpl ) : mrImpl(rImpl) {} + explicit AccessibleTextHelper_UpdateChildBounds( AccessibleTextHelper_Impl& rImpl ) : mrImpl(rImpl) {} ::accessibility::AccessibleParaManager::WeakChild operator()( const ::accessibility::AccessibleParaManager::WeakChild& rChild ) { // retrieve hard reference from weak one @@ -902,7 +902,7 @@ namespace accessibility class AccessibleTextHelper_LostChildEvent : public ::std::unary_function< const ::accessibility::AccessibleParaManager::WeakChild&, void > { public: - AccessibleTextHelper_LostChildEvent( AccessibleTextHelper_Impl& rImpl ) : mrImpl(rImpl) {} + explicit AccessibleTextHelper_LostChildEvent( AccessibleTextHelper_Impl& rImpl ) : mrImpl(rImpl) {} void operator()( const ::accessibility::AccessibleParaManager::WeakChild& rPara ) { // retrieve hard reference from weak one diff --git a/svx/source/core/extedit.cxx b/svx/source/core/extedit.cxx index bb15fca328a3..c705784f2f62 100644 --- a/svx/source/core/extedit.cxx +++ b/svx/source/core/extedit.cxx @@ -79,7 +79,7 @@ private: virtual void execute() SAL_OVERRIDE; public: - ExternalToolEditThread(OUString const& rFileName) + explicit ExternalToolEditThread(OUString const& rFileName) : ::salhelper::Thread("ExternalToolEdit") , m_aFileName(rFileName) {} diff --git a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx index f3656a30d5c1..32d88f5d4f03 100644 --- a/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeFunctionParser.cxx @@ -98,7 +98,7 @@ class ConstantValueExpression : public ExpressionNode public: - ConstantValueExpression( double rValue ) : + explicit ConstantValueExpression( double rValue ) : maValue( rValue ) { } @@ -792,7 +792,7 @@ class DoubleConstantFunctor ParserContextSharedPtr mxContext; public: - DoubleConstantFunctor( const ParserContextSharedPtr& rContext ) : + explicit DoubleConstantFunctor( const ParserContextSharedPtr& rContext ) : mxContext( rContext ) { } @@ -918,7 +918,7 @@ class IfFunctor public : - IfFunctor( const ParserContextSharedPtr& rContext ) : + explicit IfFunctor( const ParserContextSharedPtr& rContext ) : mxContext( rContext ) { } @@ -1006,7 +1006,7 @@ public: @param rParserContext Contains context info for the parser */ - ExpressionGrammar( const ParserContextSharedPtr& rParserContext ) : + explicit ExpressionGrammar( const ParserContextSharedPtr& rParserContext ) : mpParserContext( rParserContext ) { } @@ -1015,7 +1015,7 @@ public: { public: // grammar definition - definition( const ExpressionGrammar& self ) + explicit definition( const ExpressionGrammar& self ) { using ::boost::spirit::str_p; using ::boost::spirit::range_p; diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx index b7b7217184a8..f544be3fc852 100644 --- a/svx/source/dialog/_bmpmask.cxx +++ b/svx/source/dialog/_bmpmask.cxx @@ -62,7 +62,7 @@ class ColorWindow : public Control public: - ColorWindow(vcl::Window* pParent) + explicit ColorWindow(vcl::Window* pParent) : Control(pParent, WB_BORDER) , aColor( COL_WHITE ) { diff --git a/svx/source/dialog/imapwnd.hxx b/svx/source/dialog/imapwnd.hxx index ee823a521b37..fa53b9579b6f 100644 --- a/svx/source/dialog/imapwnd.hxx +++ b/svx/source/dialog/imapwnd.hxx @@ -72,7 +72,7 @@ public: SdrObjUserData ( IMapInventor, SVD_IMAP_USERDATA, 0 ), mpObj ( ) {} - IMapUserData( const IMapObjectPtr& rIMapObj ) : + explicit IMapUserData( const IMapObjectPtr& rIMapObj ) : SdrObjUserData ( IMapInventor, SVD_IMAP_USERDATA, 0 ), mpObj ( rIMapObj ) {} diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 421795807ceb..cbca4a2f42b9 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -59,7 +59,7 @@ class RulerDebugWindow : public vcl::Window { ListBox aBox; public: - RulerDebugWindow(vcl::Window* pParent) : + explicit RulerDebugWindow(vcl::Window* pParent) : Window(pParent, WB_BORDER|WB_SIZEMOVE|WB_DIALOGCONTROL|WB_CLIPCHILDREN|WB_SYSTEMWINDOW), aBox(this, WB_BORDER) { diff --git a/svx/source/engine3d/helperminimaldepth3d.cxx b/svx/source/engine3d/helperminimaldepth3d.cxx index c5781ff44ea8..626c31e82788 100644 --- a/svx/source/engine3d/helperminimaldepth3d.cxx +++ b/svx/source/engine3d/helperminimaldepth3d.cxx @@ -46,7 +46,7 @@ namespace drawinglayer virtual void processBasePrimitive3D(const primitive3d::BasePrimitive3D& rCandidate) SAL_OVERRIDE; public: - MinimalDephInViewExtractor(const geometry::ViewInformation3D& rViewInformation) + explicit MinimalDephInViewExtractor(const geometry::ViewInformation3D& rViewInformation) : BaseProcessor3D(rViewInformation), mfMinimalDepth(DBL_MAX) {} diff --git a/svx/source/engine3d/scene3d.cxx b/svx/source/engine3d/scene3d.cxx index 2876b4d0b6b9..a488e5e3ac1f 100644 --- a/svx/source/engine3d/scene3d.cxx +++ b/svx/source/engine3d/scene3d.cxx @@ -59,7 +59,7 @@ class ImpRemap3DDepth public: ImpRemap3DDepth(sal_uInt32 nOrdNum, double fMinimalDepth); - ImpRemap3DDepth(sal_uInt32 nOrdNum); + explicit ImpRemap3DDepth(sal_uInt32 nOrdNum); ~ImpRemap3DDepth(); // for ::std::sort @@ -116,7 +116,7 @@ class Imp3DDepthRemapper ImpRemap3DDepthVector maVector; public: - Imp3DDepthRemapper(E3dScene& rScene); + explicit Imp3DDepthRemapper(E3dScene& rScene); ~Imp3DDepthRemapper(); sal_uInt32 RemapOrdNum(sal_uInt32 nOrdNum) const; diff --git a/svx/source/engine3d/view3d.cxx b/svx/source/engine3d/view3d.cxx index 7f4ce943d9c1..8551300b703a 100644 --- a/svx/source/engine3d/view3d.cxx +++ b/svx/source/engine3d/view3d.cxx @@ -93,7 +93,7 @@ class Impl3DMirrorConstructOverlay drawinglayer::primitive2d::Primitive2DSequence maFullOverlay; public: - Impl3DMirrorConstructOverlay(const E3dView& rView); + explicit Impl3DMirrorConstructOverlay(const E3dView& rView); ~Impl3DMirrorConstructOverlay(); void SetMirrorAxis(Point aMirrorAxisA, Point aMirrorAxisB); diff --git a/svx/source/fmcomp/fmgridif.cxx b/svx/source/fmcomp/fmgridif.cxx index e78f3a85c910..5adf0c81f191 100644 --- a/svx/source/fmcomp/fmgridif.cxx +++ b/svx/source/fmcomp/fmgridif.cxx @@ -981,7 +981,7 @@ protected: FmXGridPeer* m_pPeer; public: - GridListenerDelegator( FmXGridPeer* _pPeer ); + explicit GridListenerDelegator( FmXGridPeer* _pPeer ); virtual ~GridListenerDelegator(); protected: diff --git a/svx/source/fmcomp/gridctrl.cxx b/svx/source/fmcomp/gridctrl.cxx index 76920e17650c..04d474635cf5 100644 --- a/svx/source/fmcomp/gridctrl.cxx +++ b/svx/source/fmcomp/gridctrl.cxx @@ -89,7 +89,7 @@ class RowSetEventListener : public ::cppu::WeakImplHelper1<XRowsChangeListener> { VclPtr<DbGridControl> m_pControl; public: - RowSetEventListener(DbGridControl* i_pControl) : m_pControl(i_pControl) + explicit RowSetEventListener(DbGridControl* i_pControl) : m_pControl(i_pControl) { } @@ -256,7 +256,7 @@ class FmXGridSourcePropListener : public ::comphelper::OPropertyChangeListener sal_Int16 m_nSuspended; public: - FmXGridSourcePropListener(DbGridControl* _pParent); + explicit FmXGridSourcePropListener(DbGridControl* _pParent); void suspend() { ++m_nSuspended; } void resume() { --m_nSuspended; } diff --git a/svx/source/form/datanavi.cxx b/svx/source/form/datanavi.cxx index ca3acd9f2a9e..6ec506815821 100644 --- a/svx/source/form/datanavi.cxx +++ b/svx/source/form/datanavi.cxx @@ -119,9 +119,9 @@ namespace svxform Reference< css::xml::dom::XNode > m_xNode; Reference< XPropertySet > m_xPropSet; - ItemNode( const Reference< css::xml::dom::XNode >& _rxNode ) : + explicit ItemNode( const Reference< css::xml::dom::XNode >& _rxNode ) : m_xNode( _rxNode ) {} - ItemNode( const Reference< XPropertySet >& _rxSet ) : + explicit ItemNode( const Reference< XPropertySet >& _rxSet ) : m_xPropSet( _rxSet ) {} }; diff --git a/svx/source/form/filtnav.cxx b/svx/source/form/filtnav.cxx index 0ac78dfb6d07..792efa855ef0 100644 --- a/svx/source/form/filtnav.cxx +++ b/svx/source/form/filtnav.cxx @@ -231,7 +231,7 @@ class FmFilterHint : public SfxHint FmFilterData* m_pData; public: - FmFilterHint(FmFilterData* pData):m_pData(pData){} + explicit FmFilterHint(FmFilterData* pData):m_pData(pData){} FmFilterData* GetData() const { return m_pData; } }; @@ -252,7 +252,7 @@ public: class FmFilterRemovedHint : public FmFilterHint { public: - FmFilterRemovedHint(FmFilterData* pData) + explicit FmFilterRemovedHint(FmFilterData* pData) :FmFilterHint(pData){} }; @@ -260,7 +260,7 @@ public: class FmFilterTextChangedHint : public FmFilterHint { public: - FmFilterTextChangedHint(FmFilterData* pData) + explicit FmFilterTextChangedHint(FmFilterData* pData) :FmFilterHint(pData){} }; diff --git a/svx/source/form/fmpgeimp.cxx b/svx/source/form/fmpgeimp.cxx index 463ad07e6b09..1956e278d204 100644 --- a/svx/source/form/fmpgeimp.cxx +++ b/svx/source/form/fmpgeimp.cxx @@ -127,7 +127,7 @@ namespace class FormComponentAssignment { public: - FormComponentAssignment( MapControlModels& _out_controlModelMap ) + explicit FormComponentAssignment( MapControlModels& _out_controlModelMap ) :m_rControlModelMap( _out_controlModelMap ) { } diff --git a/svx/source/form/fmscriptingenv.cxx b/svx/source/form/fmscriptingenv.cxx index a0d81a5bf3b8..07cbcb0e36af 100644 --- a/svx/source/form/fmscriptingenv.cxx +++ b/svx/source/form/fmscriptingenv.cxx @@ -87,7 +87,7 @@ namespace svxform FormScriptingEnvironment *m_pScriptExecutor; public: - FormScriptListener( FormScriptingEnvironment * pScriptExecutor ); + explicit FormScriptListener( FormScriptingEnvironment * pScriptExecutor ); // XScriptListener virtual void SAL_CALL firing( const ScriptEvent& aEvent ) throw (RuntimeException, std::exception) SAL_OVERRIDE; @@ -152,7 +152,7 @@ namespace svxform bool m_bDisposed; public: - FormScriptingEnvironment( FmFormModel& _rModel ); + explicit FormScriptingEnvironment( FmFormModel& _rModel ); virtual ~FormScriptingEnvironment(); // callback for FormScriptListener diff --git a/svx/source/form/fmshimp.cxx b/svx/source/form/fmshimp.cxx index d208c147ee17..592f1e8ac976 100644 --- a/svx/source/form/fmshimp.cxx +++ b/svx/source/form/fmshimp.cxx @@ -2743,7 +2743,7 @@ private: bool m_bEnabled; public: - SuspendPropertyTracking( FmXFormShell& _rShell ) + explicit SuspendPropertyTracking( FmXFormShell& _rShell ) :m_rShell( _rShell ) ,m_bEnabled( false ) { diff --git a/svx/source/form/fmundo.cxx b/svx/source/form/fmundo.cxx index cbd32ba352a5..0b32ca054528 100644 --- a/svx/source/form/fmundo.cxx +++ b/svx/source/form/fmundo.cxx @@ -79,7 +79,7 @@ typedef cppu::WeakImplHelper1< XScriptListener > ScriptEventListener_BASE; class ScriptEventListenerWrapper : public ScriptEventListener_BASE { public: - ScriptEventListenerWrapper( FmFormModel& _rModel) throw ( RuntimeException ) + explicit ScriptEventListenerWrapper( FmFormModel& _rModel) throw ( RuntimeException ) :m_rModel( _rModel ) ,m_attemptedListenerCreation( false ) { diff --git a/svx/source/form/fmvwimp.cxx b/svx/source/form/fmvwimp.cxx index 8044e8b6c6dc..5558b920194c 100644 --- a/svx/source/form/fmvwimp.cxx +++ b/svx/source/form/fmvwimp.cxx @@ -159,12 +159,10 @@ class FmXFormView::ObjectRemoveListener : public SfxListener { FmXFormView* m_pParent; public: - ObjectRemoveListener( FmXFormView* pParent ); + explicit ObjectRemoveListener( FmXFormView* pParent ); virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE; }; - - FormViewPageWindowAdapter::FormViewPageWindowAdapter( const css::uno::Reference<css::uno::XComponentContext>& _rContext, const SdrPageWindow& _rWindow, FmXFormView* _pViewImpl ) : m_xControlContainer( _rWindow.GetControlContainer() ), m_xContext( _rContext ), diff --git a/svx/source/form/formcontrolfactory.cxx b/svx/source/form/formcontrolfactory.cxx index 9aae5dea5ee1..3af8a0f8c7fa 100644 --- a/svx/source/form/formcontrolfactory.cxx +++ b/svx/source/form/formcontrolfactory.cxx @@ -99,7 +99,7 @@ namespace svxform { Reference<XComponentContext> m_xContext; - FormControlFactory_Data( const Reference<XComponentContext>& _rContext ) + explicit FormControlFactory_Data( const Reference<XComponentContext>& _rContext ) :m_xContext( _rContext ) { } diff --git a/svx/source/form/formcontroller.cxx b/svx/source/form/formcontroller.cxx index 861c33ff2649..9e5bef901f94 100644 --- a/svx/source/form/formcontroller.cxx +++ b/svx/source/form/formcontroller.cxx @@ -247,7 +247,7 @@ struct ColumnInfo class ColumnInfoCache { public: - ColumnInfoCache( const Reference< XColumnsSupplier >& _rxColSupplier ); + explicit ColumnInfoCache( const Reference< XColumnsSupplier >& _rxColSupplier ); size_t getColumnCount() const { return m_aColumns.size(); } const ColumnInfo& getColumnInfo( size_t _pos ); @@ -717,7 +717,7 @@ namespace struct RemoveComponentTextListener : public ::std::unary_function< Reference< XTextComponent >, void > { - RemoveComponentTextListener( const Reference< XTextListener >& _rxListener ) + explicit RemoveComponentTextListener( const Reference< XTextListener >& _rxListener ) :m_xListener( _rxListener ) { } diff --git a/svx/source/form/formcontrolling.cxx b/svx/source/form/formcontrolling.cxx index e2ef294cc503..db5d2be47e18 100644 --- a/svx/source/form/formcontrolling.cxx +++ b/svx/source/form/formcontrolling.cxx @@ -124,7 +124,7 @@ namespace svx struct MatchFeatureDescriptionByURL : public ::std::unary_function< FeatureDescription, bool > { const OUString& m_rURL; - MatchFeatureDescriptionByURL( const OUString& _rURL ) :m_rURL( _rURL ) { } + explicit MatchFeatureDescriptionByURL( const OUString& _rURL ) :m_rURL( _rURL ) { } bool operator()( const FeatureDescription& _compare ) { @@ -136,7 +136,7 @@ namespace svx struct MatchFeatureDescriptionBySlotId : public ::std::unary_function< FeatureDescription, bool > { sal_Int32 m_nSlotId; - MatchFeatureDescriptionBySlotId( sal_Int32 _nSlotId ) :m_nSlotId( _nSlotId ) { } + explicit MatchFeatureDescriptionBySlotId( sal_Int32 _nSlotId ) :m_nSlotId( _nSlotId ) { } bool operator()( const FeatureDescription& _compare ) { @@ -148,7 +148,7 @@ namespace svx struct MatchFeatureDescriptionByFormFeature : public ::std::unary_function< FeatureDescription, bool > { sal_Int32 m_nFormFeature; - MatchFeatureDescriptionByFormFeature( sal_Int32 _nFormFeature ) :m_nFormFeature( _nFormFeature ) { } + explicit MatchFeatureDescriptionByFormFeature( sal_Int32 _nFormFeature ) :m_nFormFeature( _nFormFeature ) { } bool operator()( const FeatureDescription& _compare ) { diff --git a/svx/source/form/legacyformcontroller.cxx b/svx/source/form/legacyformcontroller.cxx index 010fd70718db..2edb9002fc39 100644 --- a/svx/source/form/legacyformcontroller.cxx +++ b/svx/source/form/legacyformcontroller.cxx @@ -76,7 +76,7 @@ namespace svxform } protected: - LegacyFormController( const Reference< XComponentContext >& _rxContext ) + explicit LegacyFormController( const Reference< XComponentContext >& _rxContext ) :m_xDelegator( FormController::create(_rxContext) ) { } diff --git a/svx/source/gallery2/codec.hxx b/svx/source/gallery2/codec.hxx index 2c7bf58b8c8a..efde247c9475 100644 --- a/svx/source/gallery2/codec.hxx +++ b/svx/source/gallery2/codec.hxx @@ -31,8 +31,8 @@ private: SvStream& rStm; public: - GalleryCodec( SvStream& rIOStm ); - ~GalleryCodec(); + explicit GalleryCodec( SvStream& rIOStm ); + ~GalleryCodec(); void Write( SvStream& rStmToWrite ); void Read( SvStream& rStmToRead ); diff --git a/svx/source/gallery2/galbrws2.cxx b/svx/source/gallery2/galbrws2.cxx index c1d49fefc85c..76dc9d2c04e6 100644 --- a/svx/source/gallery2/galbrws2.cxx +++ b/svx/source/gallery2/galbrws2.cxx @@ -99,7 +99,7 @@ struct CommandInfo css::util::URL URL; css::uno::Reference< css::frame::XDispatch > Dispatch; - CommandInfo( const OUString &rURL ) + explicit CommandInfo( const OUString &rURL ) { URL.Complete = rURL; } diff --git a/svx/source/sidebar/EmptyPanel.hxx b/svx/source/sidebar/EmptyPanel.hxx index e85edba32a0a..9a0054a1ef42 100644 --- a/svx/source/sidebar/EmptyPanel.hxx +++ b/svx/source/sidebar/EmptyPanel.hxx @@ -34,7 +34,7 @@ class EmptyPanel : public Control { public: - EmptyPanel (vcl::Window* pParent); + explicit EmptyPanel (vcl::Window* pParent); virtual ~EmptyPanel(); virtual void dispose() SAL_OVERRIDE; diff --git a/svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx b/svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx index 20e605a388f3..b3d04e538338 100644 --- a/svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx +++ b/svx/source/sidebar/paragraph/ParaLineSpacingControl.hxx @@ -29,7 +29,7 @@ namespace svx { class ParaLineSpacingControl : public SfxPopupWindow { public: - ParaLineSpacingControl(sal_uInt16 nId); + explicit ParaLineSpacingControl(sal_uInt16 nId); virtual ~ParaLineSpacingControl(); virtual void dispose() SAL_OVERRIDE; diff --git a/svx/source/stbctrls/pszctrl.cxx b/svx/source/stbctrls/pszctrl.cxx index d4acca719c07..951317c7ab72 100644 --- a/svx/source/stbctrls/pszctrl.cxx +++ b/svx/source/stbctrls/pszctrl.cxx @@ -94,7 +94,7 @@ SFX_IMPL_STATUSBAR_CONTROL(SvxPosSizeStatusBarControl, SvxSizeItem); class FunctionPopup_Impl : public PopupMenu { public: - FunctionPopup_Impl( sal_uInt16 nCheck ); + explicit FunctionPopup_Impl( sal_uInt16 nCheck ); sal_uInt16 GetSelected() const { return nSelected; } diff --git a/svx/source/stbctrls/selctrl.cxx b/svx/source/stbctrls/selctrl.cxx index 9fe589ac85b8..5ddf609bc932 100644 --- a/svx/source/stbctrls/selctrl.cxx +++ b/svx/source/stbctrls/selctrl.cxx @@ -35,7 +35,7 @@ SFX_IMPL_STATUSBAR_CONTROL(SvxSelectionModeControl, SfxUInt16Item); class SelectionTypePopup : public PopupMenu { public: - SelectionTypePopup( sal_uInt16 nCurrent ); + explicit SelectionTypePopup( sal_uInt16 nCurrent ); }; /// Item id's cannot start from 0, so we need to convert diff --git a/svx/source/svdraw/svddrgm1.hxx b/svx/source/svdraw/svddrgm1.hxx index e9daf6fa4444..059413e9c3a5 100644 --- a/svx/source/svdraw/svddrgm1.hxx +++ b/svx/source/svdraw/svddrgm1.hxx @@ -35,7 +35,7 @@ protected: public: TYPEINFO_OVERRIDE(); - SdrDragMovHdl(SdrDragView& rNewView); + explicit SdrDragMovHdl(SdrDragView& rNewView); virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE; virtual bool BeginSdrDrag() SAL_OVERRIDE; @@ -56,7 +56,7 @@ private: public: TYPEINFO_OVERRIDE(); - SdrDragRotate(SdrDragView& rNewView); + explicit SdrDragRotate(SdrDragView& rNewView); virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE; virtual bool BeginSdrDrag() SAL_OVERRIDE; @@ -106,7 +106,7 @@ private: public: TYPEINFO_OVERRIDE(); - SdrDragMirror(SdrDragView& rNewView); + explicit SdrDragMirror(SdrDragView& rNewView); virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE; virtual bool BeginSdrDrag() SAL_OVERRIDE; @@ -178,7 +178,7 @@ protected: public: TYPEINFO_OVERRIDE(); - SdrDragCrook(SdrDragView& rNewView); + explicit SdrDragCrook(SdrDragView& rNewView); virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE; virtual bool BeginSdrDrag() SAL_OVERRIDE; @@ -209,7 +209,7 @@ protected: public: TYPEINFO_OVERRIDE(); - SdrDragDistort(SdrDragView& rNewView); + explicit SdrDragDistort(SdrDragView& rNewView); virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE; virtual bool BeginSdrDrag() SAL_OVERRIDE; @@ -227,7 +227,7 @@ class SdrDragCrop : public SdrDragObjOwn { public: TYPEINFO_OVERRIDE(); - SdrDragCrop(SdrDragView& rNewView); + explicit SdrDragCrop(SdrDragView& rNewView); virtual void TakeSdrDragComment(OUString& rStr) const SAL_OVERRIDE; virtual bool BeginSdrDrag() SAL_OVERRIDE; diff --git a/svx/source/svdraw/svdhdl.cxx b/svx/source/svdraw/svdhdl.cxx index c007892e64cc..75575da53690 100644 --- a/svx/source/svdraw/svdhdl.cxx +++ b/svx/source/svdraw/svdhdl.cxx @@ -89,7 +89,7 @@ class SdrHdlBitmapSet BitmapEx& impGetOrCreateTargetBitmap(sal_uInt16 nIndex, const Rectangle& rRectangle); public: - SdrHdlBitmapSet(sal_uInt16 nResId); + explicit SdrHdlBitmapSet(sal_uInt16 nResId); ~SdrHdlBitmapSet(); const BitmapEx& GetBitmapEx(BitmapMarkerKind eKindOfMarker, sal_uInt16 nInd=0); diff --git a/svx/source/svdraw/svdograf.cxx b/svx/source/svdraw/svdograf.cxx index 2fa62cc96e3c..1fe09ee5b237 100644 --- a/svx/source/svdraw/svdograf.cxx +++ b/svx/source/svdraw/svdograf.cxx @@ -111,7 +111,7 @@ class SdrGraphicLink : public sfx2::SvBaseLink SdrGraphicUpdater* pGraphicUpdater; public: - SdrGraphicLink(SdrGrafObj& rObj); + explicit SdrGraphicLink(SdrGrafObj& rObj); virtual ~SdrGraphicLink(); virtual void Closed() SAL_OVERRIDE; diff --git a/svx/source/svdraw/svdoole2.cxx b/svx/source/svdraw/svdoole2.cxx index 403646b6f10e..e567960994ed 100644 --- a/svx/source/svdraw/svdoole2.cxx +++ b/svx/source/svdraw/svdoole2.cxx @@ -118,7 +118,7 @@ class SdrLightEmbeddedClient_Impl : public ::cppu::WeakImplHelper5 public: - SdrLightEmbeddedClient_Impl( SdrOle2Obj* pObj ); + explicit SdrLightEmbeddedClient_Impl( SdrOle2Obj* pObj ); void Release(); void SetSizeScale( const Fraction& aScaleWidth, const Fraction& aScaleHeight ) @@ -595,7 +595,7 @@ class SdrEmbedObjectLink : public sfx2::SvBaseLink SdrOle2Obj* pObj; public: - SdrEmbedObjectLink(SdrOle2Obj* pObj); + explicit SdrEmbedObjectLink(SdrOle2Obj* pObj); virtual ~SdrEmbedObjectLink(); virtual void Closed() SAL_OVERRIDE; @@ -692,7 +692,7 @@ public: SvxUnoShapeModifyListener* mpModifyListener; - SdrOle2ObjImpl( bool bFrame ) : + explicit SdrOle2ObjImpl( bool bFrame ) : mpGraphic(NULL), mpGraphicObject(NULL), pLightClient (NULL), diff --git a/svx/source/svdraw/svdopath.cxx b/svx/source/svdraw/svdopath.cxx index b570e7ffccb2..e84014baa5bc 100644 --- a/svx/source/svdraw/svdopath.cxx +++ b/svx/source/svdraw/svdopath.cxx @@ -510,7 +510,7 @@ class ImpPathForDragAndCreate bool mbCreating; public: - ImpPathForDragAndCreate(SdrPathObj& rSdrPathObject); + explicit ImpPathForDragAndCreate(SdrPathObj& rSdrPathObject); ~ImpPathForDragAndCreate(); // drag stuff diff --git a/svx/source/svdraw/svdotextdecomposition.cxx b/svx/source/svdraw/svdotextdecomposition.cxx index 71b4f7e7c649..f10dc9279832 100644 --- a/svx/source/svdraw/svdotextdecomposition.cxx +++ b/svx/source/svdraw/svdotextdecomposition.cxx @@ -106,7 +106,7 @@ namespace void impHandleDrawBulletInfo(const DrawBulletInfo& rInfo); public: - impTextBreakupHandler(SdrOutliner& rOutliner) + explicit impTextBreakupHandler(SdrOutliner& rOutliner) : maTextPortionPrimitives(), maLinePrimitives(), maParagraphPrimitives(), diff --git a/svx/source/svdraw/svdotextpathdecomposition.cxx b/svx/source/svdraw/svdotextpathdecomposition.cxx index 252d39ab0558..a96a714ab36b 100644 --- a/svx/source/svdraw/svdotextpathdecomposition.cxx +++ b/svx/source/svdraw/svdotextpathdecomposition.cxx @@ -83,7 +83,7 @@ namespace bool mbRTL : 1; public: - impPathTextPortion(DrawPortionInfo& rInfo) + explicit impPathTextPortion(DrawPortionInfo& rInfo) : maOffset(rInfo.mrStartPos.X(), rInfo.mrStartPos.Y()), maText(rInfo.maText), mnTextStart(rInfo.mnTextStart), @@ -174,7 +174,7 @@ namespace DECL_LINK(decompositionPathTextPrimitive, DrawPortionInfo* ); public: - impTextBreakupHandler(SdrOutliner& rOutliner) + explicit impTextBreakupHandler(SdrOutliner& rOutliner) : mrOutliner(rOutliner) { } diff --git a/svx/source/svdraw/svdotxln.cxx b/svx/source/svdraw/svdotxln.cxx index c0913d2ce7bd..350ffa4f62b3 100644 --- a/svx/source/svdraw/svdotxln.cxx +++ b/svx/source/svdraw/svdotxln.cxx @@ -40,7 +40,7 @@ class ImpSdrObjTextLink: public ::sfx2::SvBaseLink SdrTextObj* pSdrObj; public: - ImpSdrObjTextLink( SdrTextObj* pObj1 ) + explicit ImpSdrObjTextLink( SdrTextObj* pObj1 ) : ::sfx2::SvBaseLink( ::SfxLinkUpdateMode::ONCALL, SotClipboardFormatId::SIMPLE_FILE ), pSdrObj( pObj1 ) {} diff --git a/svx/source/svdraw/svdouno.cxx b/svx/source/svdraw/svdouno.cxx index aac9a6d8711f..744fcdec32e6 100644 --- a/svx/source/svdraw/svdouno.cxx +++ b/svx/source/svdraw/svdouno.cxx @@ -71,7 +71,7 @@ protected: SdrUnoObj* pObj; public: - SdrControlEventListenerImpl(SdrUnoObj* _pObj) + explicit SdrControlEventListenerImpl(SdrUnoObj* _pObj) : pObj(_pObj) {} diff --git a/svx/source/svdraw/svdpage.cxx b/svx/source/svdraw/svdpage.cxx index 7d2d701ea44a..648a675d078f 100644 --- a/svx/source/svdraw/svdpage.cxx +++ b/svx/source/svdraw/svdpage.cxx @@ -63,7 +63,7 @@ class SdrObjList::WeakSdrObjectContainerType : public ::std::vector<SdrObjectWeakRef> { public: - WeakSdrObjectContainerType (const sal_Int32 nInitialSize) + explicit WeakSdrObjectContainerType (const sal_Int32 nInitialSize) : ::std::vector<SdrObjectWeakRef>(nInitialSize) {}; }; diff --git a/svx/source/table/accessibletableshape.cxx b/svx/source/table/accessibletableshape.cxx index a0841f0b4ce1..8524cf631294 100644 --- a/svx/source/table/accessibletableshape.cxx +++ b/svx/source/table/accessibletableshape.cxx @@ -64,7 +64,7 @@ typedef std::unordered_map< Reference< XCell >, rtl::Reference< AccessibleCell > class AccessibleTableShapeImpl : public cppu::WeakImplHelper1< XModifyListener > { public: - AccessibleTableShapeImpl( AccessibleShapeTreeInfo& rShapeTreeInfo ); + explicit AccessibleTableShapeImpl( AccessibleShapeTreeInfo& rShapeTreeInfo ); void init( const Reference< XAccessible>& xAccessible, const Reference< XTable >& xTable ); void dispose(); diff --git a/svx/source/table/propertyset.hxx b/svx/source/table/propertyset.hxx index 001212b7bfff..a3605b2e6927 100644 --- a/svx/source/table/propertyset.hxx +++ b/svx/source/table/propertyset.hxx @@ -39,7 +39,7 @@ typedef std::unordered_map< OUString, ::sal_uInt32, OUStringHash, std::equal_to< class FastPropertySetInfo : public ::cppu::WeakAggImplHelper1< ::com::sun::star::beans::XPropertySetInfo > { public: - FastPropertySetInfo( const PropertyVector& rProps ); + explicit FastPropertySetInfo( const PropertyVector& rProps ); virtual ~FastPropertySetInfo(); void addProperties( const PropertyVector& rProps ); @@ -62,7 +62,7 @@ private: class FastPropertySet : public ::cppu::WeakAggImplHelper3< ::com::sun::star::beans::XPropertySet, ::com::sun::star::beans::XMultiPropertySet, ::com::sun::star::beans::XFastPropertySet > { public: - FastPropertySet( const rtl::Reference< FastPropertySetInfo >& xInfo ); + explicit FastPropertySet( const rtl::Reference< FastPropertySetInfo >& xInfo ); virtual ~FastPropertySet(); // XPropertySet diff --git a/svx/source/table/svdotable.cxx b/svx/source/table/svdotable.cxx index a308c34f03de..a3235a2fb418 100644 --- a/svx/source/table/svdotable.cxx +++ b/svx/source/table/svdotable.cxx @@ -89,7 +89,7 @@ protected: public: // basic constructor - TableProperties(SdrObject& rObj ); + explicit TableProperties(SdrObject& rObj ); // constructor for copying, but using new object TableProperties(const TableProperties& rProps, SdrObject& rObj ); diff --git a/svx/source/table/tablecolumns.hxx b/svx/source/table/tablecolumns.hxx index e940cb6a7d7b..093c207f271f 100644 --- a/svx/source/table/tablecolumns.hxx +++ b/svx/source/table/tablecolumns.hxx @@ -32,7 +32,7 @@ namespace sdr { namespace table { class TableColumns : public ::cppu::WeakAggImplHelper1< ::com::sun::star::table::XTableColumns > { public: - TableColumns( const TableModelRef& xTableModel ); + explicit TableColumns( const TableModelRef& xTableModel ); virtual ~TableColumns(); void dispose(); diff --git a/svx/source/table/tablecontroller.cxx b/svx/source/table/tablecontroller.cxx index 38a41b5ae04f..6efe83306d89 100644 --- a/svx/source/table/tablecontroller.cxx +++ b/svx/source/table/tablecontroller.cxx @@ -86,7 +86,7 @@ namespace sdr { namespace table { class SvxTableControllerModifyListener : public ::cppu::WeakImplHelper1< ::com::sun::star::util::XModifyListener > { public: - SvxTableControllerModifyListener( SvxTableController* pController ) + explicit SvxTableControllerModifyListener( SvxTableController* pController ) : mpController( pController ) {} // XModifyListener diff --git a/svx/source/table/tablelayouter.hxx b/svx/source/table/tablelayouter.hxx index 642128bbf2e9..6db14862a9ab 100644 --- a/svx/source/table/tablelayouter.hxx +++ b/svx/source/table/tablelayouter.hxx @@ -57,7 +57,7 @@ typedef std::vector< BorderLineVector > BorderLineMap; class TableLayouter { public: - TableLayouter( const TableModelRef& xTableModel ); + explicit TableLayouter( const TableModelRef& xTableModel ); virtual ~TableLayouter(); /** try to fit the table into the given rectangle. diff --git a/svx/source/table/tablemodel.hxx b/svx/source/table/tablemodel.hxx index 8ad480ec2056..757711c199af 100644 --- a/svx/source/table/tablemodel.hxx +++ b/svx/source/table/tablemodel.hxx @@ -69,7 +69,7 @@ class TableModel : public ::comphelper::OBaseMutex, friend class TableModelNotifyGuard; public: - TableModel( SdrTableObj* pTableObj ); + explicit TableModel( SdrTableObj* pTableObj ); TableModel( SdrTableObj* pTableObj, const TableModelRef& xSourceTable ); virtual ~TableModel(); @@ -183,14 +183,14 @@ private: class TableModelNotifyGuard { public: - TableModelNotifyGuard( TableModel* pModel ) + explicit TableModelNotifyGuard( TableModel* pModel ) : mxBroadcaster( static_cast< ::com::sun::star::util::XBroadcaster* >( pModel ) ) { if( mxBroadcaster.is() ) mxBroadcaster->lockBroadcasts(); } - TableModelNotifyGuard( ::com::sun::star::uno::XInterface* pInterface ) + explicit TableModelNotifyGuard( ::com::sun::star::uno::XInterface* pInterface ) : mxBroadcaster( pInterface, ::com::sun::star::uno::UNO_QUERY ) { if( mxBroadcaster.is() ) diff --git a/svx/source/table/tablerows.hxx b/svx/source/table/tablerows.hxx index bf681a53a1fb..6a8b887be0cd 100644 --- a/svx/source/table/tablerows.hxx +++ b/svx/source/table/tablerows.hxx @@ -32,7 +32,7 @@ namespace sdr { namespace table { class TableRows : public ::cppu::WeakAggImplHelper1< ::com::sun::star::table::XTableRows > { public: - TableRows( const TableModelRef& xTableModel ); + explicit TableRows( const TableModelRef& xTableModel ); virtual ~TableRows(); void dispose(); diff --git a/svx/source/table/tablertfimporter.cxx b/svx/source/table/tablertfimporter.cxx index e0c83401f254..6f5655f26583 100644 --- a/svx/source/table/tablertfimporter.cxx +++ b/svx/source/table/tablertfimporter.cxx @@ -55,7 +55,7 @@ struct RTFCellDefault sal_uInt16 mnTwips; // right border of the cell sal_Int32 mnColSpan; // MergeCell if >1, merged cells if 0 - RTFCellDefault( SfxItemPool* pPool ) : maItemSet( *pPool ), mnCol(0), mnTwips(0 ), mnColSpan(1) {} + explicit RTFCellDefault( SfxItemPool* pPool ) : maItemSet( *pPool ), mnCol(0), mnTwips(0 ), mnColSpan(1) {} }; typedef std::vector< boost::shared_ptr< RTFCellDefault > > RTFCellDefaultVector; @@ -67,7 +67,7 @@ struct RTFCellInfo sal_Int32 mnParaCount; sal_Int32 mnColSpan; - RTFCellInfo( SfxItemPool& rPool ) : maItemSet( rPool ), mnStartPara(0), mnParaCount(0), mnColSpan(0) {} + explicit RTFCellInfo( SfxItemPool& rPool ) : maItemSet( rPool ), mnStartPara(0), mnParaCount(0), mnColSpan(0) {} }; typedef boost::shared_ptr< RTFCellInfo > RTFCellInfoPtr; @@ -80,7 +80,7 @@ typedef std::vector< RTFColumnVectorPtr > RTFRowVector; class SdrTableRTFParser { public: - SdrTableRTFParser( SdrTableObj& rTableObj ); + explicit SdrTableRTFParser( SdrTableObj& rTableObj ); ~SdrTableRTFParser(); void Read( SvStream& rStream ); diff --git a/svx/source/table/tableundo.hxx b/svx/source/table/tableundo.hxx index c9747cb635bb..630068e7bc64 100644 --- a/svx/source/table/tableundo.hxx +++ b/svx/source/table/tableundo.hxx @@ -170,7 +170,7 @@ private: class TableColumnUndo : public SdrUndoAction { public: - TableColumnUndo( const TableColumnRef& xCol ); + explicit TableColumnUndo( const TableColumnRef& xCol ); virtual ~TableColumnUndo(); virtual void Undo() SAL_OVERRIDE; @@ -202,7 +202,7 @@ private: class TableRowUndo : public SdrUndoAction { public: - TableRowUndo( const TableRowRef& xRow ); + explicit TableRowUndo( const TableRowRef& xRow ); virtual ~TableRowUndo(); virtual void Undo() SAL_OVERRIDE; @@ -230,12 +230,10 @@ private: bool mbHasRedoData; }; - - class TableStyleUndo : public SdrUndoAction { public: - TableStyleUndo( const SdrTableObj& rTableObj ); + explicit TableStyleUndo( const SdrTableObj& rTableObj ); virtual void Undo() SAL_OVERRIDE; virtual void Redo() SAL_OVERRIDE; diff --git a/svx/source/table/viewcontactoftableobj.hxx b/svx/source/table/viewcontactoftableobj.hxx index 737fc11289fc..87544541b353 100644 --- a/svx/source/table/viewcontactoftableobj.hxx +++ b/svx/source/table/viewcontactoftableobj.hxx @@ -42,7 +42,7 @@ namespace sdr public: // basic constructor, used from SdrObject. - ViewContactOfTableObj(sdr::table::SdrTableObj& rTextObj); + explicit ViewContactOfTableObj(sdr::table::SdrTableObj& rTextObj); virtual ~ViewContactOfTableObj(); }; } // end of namespace contact diff --git a/svx/source/tbxctrls/bulletsnumbering.cxx b/svx/source/tbxctrls/bulletsnumbering.cxx index 022bf9bbedd4..894c67a69ff6 100644 --- a/svx/source/tbxctrls/bulletsnumbering.cxx +++ b/svx/source/tbxctrls/bulletsnumbering.cxx @@ -59,7 +59,7 @@ class NumberingToolBoxControl : public svt::PopupWindowController bool mbBulletItem; public: - NumberingToolBoxControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); + explicit NumberingToolBoxControl( const css::uno::Reference< css::uno::XComponentContext >& rxContext ); virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE; bool IsInImpressDraw(); diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx index 54f7260d9af0..dbd7f2f3e103 100644 --- a/svx/source/tbxctrls/colrctrl.cxx +++ b/svx/source/tbxctrls/colrctrl.cxx @@ -44,7 +44,6 @@ using namespace com::sun::star; // - SvxColorValueSetData - - class SvxColorValueSetData : public TransferableHelper { private: @@ -59,19 +58,15 @@ protected: public: - SvxColorValueSetData( const XFillAttrSetItem& rSetItem ) : - maData( rSetItem ) {} + explicit SvxColorValueSetData( const XFillAttrSetItem& rSetItem ) : + maData( rSetItem ) {} }; - - void SvxColorValueSetData::AddSupportedFormats() { AddFormat( SotClipboardFormatId::XFA ); } - - bool SvxColorValueSetData::GetData( const css::datatransfer::DataFlavor& rFlavor, const OUString& /*rDestDoc*/ ) { bool bRet = false; diff --git a/svx/source/tbxctrls/extrusioncontrols.hxx b/svx/source/tbxctrls/extrusioncontrols.hxx index d94de5301b87..c4c432278f0f 100644 --- a/svx/source/tbxctrls/extrusioncontrols.hxx +++ b/svx/source/tbxctrls/extrusioncontrols.hxx @@ -71,7 +71,7 @@ private: class ExtrusionDirectionControl : public svt::PopupWindowController { public: - ExtrusionDirectionControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); + explicit ExtrusionDirectionControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE; @@ -118,7 +118,7 @@ public: class ExtrusionDepthController : public svt::PopupWindowController { public: - ExtrusionDepthController( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); + explicit ExtrusionDepthController( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE; @@ -175,7 +175,7 @@ public: class ExtrusionLightingControl : public svt::PopupWindowController { public: - ExtrusionLightingControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); + explicit ExtrusionLightingControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE; @@ -219,7 +219,7 @@ public: class ExtrusionSurfaceControl : public svt::PopupWindowController { public: - ExtrusionSurfaceControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); + explicit ExtrusionSurfaceControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE; diff --git a/svx/source/tbxctrls/fontworkgallery.cxx b/svx/source/tbxctrls/fontworkgallery.cxx index 2cd3fa3ed24e..e7672fd69432 100644 --- a/svx/source/tbxctrls/fontworkgallery.cxx +++ b/svx/source/tbxctrls/fontworkgallery.cxx @@ -394,7 +394,7 @@ IMPL_LINK_NOARG(FontworkAlignmentWindow, SelectHdl) class FontworkAlignmentControl : public svt::PopupWindowController { public: - FontworkAlignmentControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); + explicit FontworkAlignmentControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE; @@ -634,7 +634,7 @@ IMPL_LINK_NOARG(FontworkCharacterSpacingWindow, SelectHdl) class FontworkCharacterSpacingControl : public svt::PopupWindowController { public: - FontworkCharacterSpacingControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); + explicit FontworkCharacterSpacingControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rxContext ); virtual VclPtr<vcl::Window> createPopupWindow( vcl::Window* pParent ) SAL_OVERRIDE; diff --git a/svx/source/tbxctrls/tbunocontroller.cxx b/svx/source/tbxctrls/tbunocontroller.cxx index eb25ce945b3f..09a6cbf31dd5 100644 --- a/svx/source/tbxctrls/tbunocontroller.cxx +++ b/svx/source/tbxctrls/tbunocontroller.cxx @@ -47,7 +47,7 @@ class FontHeightToolBoxControl : public svt::ToolboxController, public lang::XServiceInfo { public: - FontHeightToolBoxControl( + explicit FontHeightToolBoxControl( const com::sun::star::uno::Reference< com::sun::star::uno::XComponentContext >& rServiceManager ); virtual ~FontHeightToolBoxControl(); diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx index 50498b4d5d91..5e7f82954779 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_dictionarydialog.hxx @@ -113,7 +113,7 @@ private: class ChineseDictionaryDialog : public ModalDialog { public: - ChineseDictionaryDialog( vcl::Window* pParent ); + explicit ChineseDictionaryDialog( vcl::Window* pParent ); virtual ~ChineseDictionaryDialog(); virtual void dispose() SAL_OVERRIDE; diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx index 9c39681f77f8..95a3a32a0feb 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translation_unodialog.hxx @@ -71,7 +71,7 @@ class ChineseTranslation_UnoDialog : public ::cppu::WeakImplHelper5 < // ,public ::com::sun::star::lang::XTypeProvider // implemented by WeakImplHelper { public: - ChineseTranslation_UnoDialog( const ::com::sun::star::uno::Reference< + explicit ChineseTranslation_UnoDialog( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& xContext ); virtual ~ChineseTranslation_UnoDialog(); diff --git a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx index 0ec0bf32f2be..cb0715591e16 100644 --- a/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx +++ b/svx/source/unodialogs/textconversiondlgs/chinese_translationdialog.hxx @@ -37,7 +37,7 @@ class ChineseDictionaryDialog; class ChineseTranslationDialog : public ModalDialog { public: - ChineseTranslationDialog( vcl::Window* pParent ); + explicit ChineseTranslationDialog( vcl::Window* pParent ); virtual ~ChineseTranslationDialog(); virtual void dispose() SAL_OVERRIDE; diff --git a/svx/source/unodraw/UnoGraphicExporter.cxx b/svx/source/unodraw/UnoGraphicExporter.cxx index 166b989bf1c1..449e34c39ed5 100644 --- a/svx/source/unodraw/UnoGraphicExporter.cxx +++ b/svx/source/unodraw/UnoGraphicExporter.cxx @@ -114,7 +114,7 @@ namespace { Fraction maScaleX; Fraction maScaleY; - ExportSettings( SdrModel* pDoc ); + explicit ExportSettings( SdrModel* pDoc ); }; ExportSettings::ExportSettings( SdrModel* pDoc ) @@ -284,7 +284,7 @@ namespace { class ImplExportCheckVisisbilityRedirector : public sdr::contact::ViewObjectContactRedirector { public: - ImplExportCheckVisisbilityRedirector( SdrPage* pCurrentPage ); + explicit ImplExportCheckVisisbilityRedirector( SdrPage* pCurrentPage ); virtual ~ImplExportCheckVisisbilityRedirector(); virtual drawinglayer::primitive2d::Primitive2DSequence createRedirectedPrimitive2DSequence( diff --git a/svx/source/unodraw/XPropertyTable.cxx b/svx/source/unodraw/XPropertyTable.cxx index c689c7f5be6f..aac26c4a4ecc 100644 --- a/svx/source/unodraw/XPropertyTable.cxx +++ b/svx/source/unodraw/XPropertyTable.cxx @@ -246,7 +246,7 @@ sal_Bool SAL_CALL SvxUnoXPropertyTable::hasElements( ) class SvxUnoXColorTable : public SvxUnoXPropertyTable { public: - SvxUnoXColorTable( XPropertyList* pList ) throw() : SvxUnoXPropertyTable( XATTR_LINECOLOR, pList ) {}; + explicit SvxUnoXColorTable( XPropertyList* pList ) throw() : SvxUnoXPropertyTable( XATTR_LINECOLOR, pList ) {}; // SvxUnoXPropertyTable virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE; @@ -308,7 +308,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXColorTable::getSupportedServiceNames( class SvxUnoXLineEndTable : public SvxUnoXPropertyTable { public: - SvxUnoXLineEndTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_LINEEND, pTable ) {}; + explicit SvxUnoXLineEndTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_LINEEND, pTable ) {}; // SvxUnoXPropertyTable virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE; @@ -381,7 +381,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXLineEndTable::getSupportedServiceName class SvxUnoXDashTable : public SvxUnoXPropertyTable { public: - SvxUnoXDashTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_LINEDASH, pTable ) {}; + explicit SvxUnoXDashTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_LINEDASH, pTable ) {}; // SvxUnoXPropertyTable virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE; @@ -462,7 +462,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXDashTable::getSupportedServiceNames( class SvxUnoXHatchTable : public SvxUnoXPropertyTable { public: - SvxUnoXHatchTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLHATCH, pTable ) {}; + explicit SvxUnoXHatchTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLHATCH, pTable ) {}; // SvxUnoXPropertyTable virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE; @@ -538,7 +538,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXHatchTable::getSupportedServiceNames( class SvxUnoXGradientTable : public SvxUnoXPropertyTable { public: - SvxUnoXGradientTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLGRADIENT, pTable ) {}; + explicit SvxUnoXGradientTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLGRADIENT, pTable ) {}; // SvxUnoXPropertyTable virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw() SAL_OVERRIDE; @@ -626,7 +626,7 @@ uno::Sequence< OUString > SAL_CALL SvxUnoXGradientTable::getSupportedServiceNam class SvxUnoXBitmapTable : public SvxUnoXPropertyTable { public: - SvxUnoXBitmapTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLBITMAP, pTable ) {}; + explicit SvxUnoXBitmapTable( XPropertyList* pTable ) throw() : SvxUnoXPropertyTable( XATTR_FILLBITMAP, pTable ) {}; // SvxUnoXPropertyTable virtual uno::Any getAny( const XPropertyEntry* pEntry ) const throw(uno::RuntimeException) SAL_OVERRIDE; diff --git a/svx/source/unodraw/gluepts.cxx b/svx/source/unodraw/gluepts.cxx index 08108b2c8d8b..f2c156bbd608 100644 --- a/svx/source/unodraw/gluepts.cxx +++ b/svx/source/unodraw/gluepts.cxx @@ -41,7 +41,7 @@ private: SdrObjectWeakRef mpObject; public: - SvxUnoGluePointAccess( SdrObject* pObject ) throw(); + explicit SvxUnoGluePointAccess( SdrObject* pObject ) throw(); virtual ~SvxUnoGluePointAccess() throw(); // XIdentifierContainer diff --git a/svx/source/unodraw/recoveryui.cxx b/svx/source/unodraw/recoveryui.cxx index ba9b5c83e54f..b7a702c196c3 100644 --- a/svx/source/unodraw/recoveryui.cxx +++ b/svx/source/unodraw/recoveryui.cxx @@ -81,7 +81,7 @@ class RecoveryUI : public ::cppu::WeakImplHelper2< css::lang::XServiceInfo /** @short TODO */ - RecoveryUI(const css::uno::Reference< css::uno::XComponentContext >& xContext); + explicit RecoveryUI(const css::uno::Reference< css::uno::XComponentContext >& xContext); /** @short TODO */ diff --git a/svx/source/unodraw/shapeimpl.hxx b/svx/source/unodraw/shapeimpl.hxx index 4477b85a5dc2..ba97c9f9569f 100644 --- a/svx/source/unodraw/shapeimpl.hxx +++ b/svx/source/unodraw/shapeimpl.hxx @@ -23,7 +23,7 @@ class SvxShapeCaption : public SvxShapeText { public: - SvxShapeCaption( SdrObject* pObj ) throw(); + explicit SvxShapeCaption( SdrObject* pObj ) throw(); virtual ~SvxShapeCaption() throw(); }; class SvxPluginShape : public SvxOle2Shape @@ -34,7 +34,7 @@ protected: virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; public: - SvxPluginShape( SdrObject* pObj ) throw(); + explicit SvxPluginShape( SdrObject* pObj ) throw(); virtual ~SvxPluginShape() throw(); virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -52,7 +52,7 @@ protected: virtual bool getPropertyValueImpl( const OUString& rName, const SfxItemPropertySimpleEntry* pProperty, ::com::sun::star::uno::Any& rValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; public: - SvxAppletShape( SdrObject* pObj ) throw(); + explicit SvxAppletShape( SdrObject* pObj ) throw(); virtual ~SvxAppletShape() throw(); virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -75,7 +75,7 @@ protected: std::exception) SAL_OVERRIDE; public: - SvxFrameShape( SdrObject* pObj ) throw(); + explicit SvxFrameShape( SdrObject* pObj ) throw(); virtual ~SvxFrameShape() throw(); virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName, const ::com::sun::star::uno::Any& aValue ) throw(::com::sun::star::beans::UnknownPropertyException, ::com::sun::star::beans::PropertyVetoException, ::com::sun::star::lang::IllegalArgumentException, ::com::sun::star::lang::WrappedTargetException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE; @@ -101,7 +101,7 @@ protected: public: - SvxTableShape( SdrObject* pObj ) throw(); + explicit SvxTableShape( SdrObject* pObj ) throw(); virtual ~SvxTableShape() throw(); }; diff --git a/svx/source/unodraw/unobtabl.cxx b/svx/source/unodraw/unobtabl.cxx index 038f6d2166f8..32bed87b4174 100644 --- a/svx/source/unodraw/unobtabl.cxx +++ b/svx/source/unodraw/unobtabl.cxx @@ -38,7 +38,7 @@ using namespace ::cppu; class SvxUnoBitmapTable : public SvxUnoNameItemTable { public: - SvxUnoBitmapTable( SdrModel* pModel ) throw(); + explicit SvxUnoBitmapTable( SdrModel* pModel ) throw(); virtual ~SvxUnoBitmapTable() throw(); virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE; diff --git a/svx/source/unodraw/unodtabl.cxx b/svx/source/unodraw/unodtabl.cxx index 875aac4d696f..907f409689d6 100644 --- a/svx/source/unodraw/unodtabl.cxx +++ b/svx/source/unodraw/unodtabl.cxx @@ -36,7 +36,7 @@ using namespace ::cppu; class SvxUnoDashTable : public SvxUnoNameItemTable { public: - SvxUnoDashTable( SdrModel* pModel ) throw(); + explicit SvxUnoDashTable( SdrModel* pModel ) throw(); virtual ~SvxUnoDashTable() throw(); virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE; diff --git a/svx/source/unodraw/unogtabl.cxx b/svx/source/unodraw/unogtabl.cxx index 58e8ff63b382..6ccdda841b9c 100644 --- a/svx/source/unodraw/unogtabl.cxx +++ b/svx/source/unodraw/unogtabl.cxx @@ -35,7 +35,7 @@ using namespace ::cppu; class SvxUnoGradientTable : public SvxUnoNameItemTable { public: - SvxUnoGradientTable( SdrModel* pModel ) throw(); + explicit SvxUnoGradientTable( SdrModel* pModel ) throw(); virtual ~SvxUnoGradientTable() throw(); virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE; diff --git a/svx/source/unodraw/unohtabl.cxx b/svx/source/unodraw/unohtabl.cxx index 545397caee92..738dfe8bf0b9 100644 --- a/svx/source/unodraw/unohtabl.cxx +++ b/svx/source/unodraw/unohtabl.cxx @@ -35,7 +35,7 @@ using namespace ::cppu; class SvxUnoHatchTable : public SvxUnoNameItemTable { public: - SvxUnoHatchTable( SdrModel* pModel ) throw(); + explicit SvxUnoHatchTable( SdrModel* pModel ) throw(); virtual ~SvxUnoHatchTable() throw(); virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE; diff --git a/svx/source/unodraw/unomod.cxx b/svx/source/unodraw/unomod.cxx index 05b938416da2..661ffa4827d7 100644 --- a/svx/source/unodraw/unomod.cxx +++ b/svx/source/unodraw/unomod.cxx @@ -72,7 +72,7 @@ private: SvxUnoDrawingModel& mrModel; public: - SvxUnoDrawPagesAccess( SvxUnoDrawingModel& rMyModel ) throw(); + explicit SvxUnoDrawPagesAccess( SvxUnoDrawingModel& rMyModel ) throw(); virtual ~SvxUnoDrawPagesAccess() throw(); // XDrawPages diff --git a/svx/source/unodraw/unomtabl.cxx b/svx/source/unodraw/unomtabl.cxx index a0d9e57d9450..054755145755 100644 --- a/svx/source/unodraw/unomtabl.cxx +++ b/svx/source/unodraw/unomtabl.cxx @@ -59,7 +59,7 @@ private: ItemPoolVector maItemSetVector; public: - SvxUnoMarkerTable( SdrModel* pModel ) throw(); + explicit SvxUnoMarkerTable( SdrModel* pModel ) throw(); virtual ~SvxUnoMarkerTable() throw(); void dispose(); diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 5a376d3e3335..c24737d9251b 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -144,7 +144,7 @@ struct SvxShapeImpl class ShapePositionProvider : public PropertyValueProvider { public: - ShapePositionProvider( const SvxShapeImpl& _shapeImpl ) + explicit ShapePositionProvider( const SvxShapeImpl& _shapeImpl ) :PropertyValueProvider( _shapeImpl.mrAntiImpl, "Position" ) { } @@ -160,7 +160,7 @@ protected: class ShapeSizeProvider : public PropertyValueProvider { public: - ShapeSizeProvider( const SvxShapeImpl& _shapeImpl ) + explicit ShapeSizeProvider( const SvxShapeImpl& _shapeImpl ) :PropertyValueProvider( _shapeImpl.mrAntiImpl, "Size" ) { } diff --git a/svx/source/unodraw/unottabl.cxx b/svx/source/unodraw/unottabl.cxx index 725f2e88875d..766dac46748f 100644 --- a/svx/source/unodraw/unottabl.cxx +++ b/svx/source/unodraw/unottabl.cxx @@ -35,7 +35,7 @@ using namespace ::cppu; class SvxUnoTransGradientTable : public SvxUnoNameItemTable { public: - SvxUnoTransGradientTable( SdrModel* pModel ) throw(); + explicit SvxUnoTransGradientTable( SdrModel* pModel ) throw(); virtual ~SvxUnoTransGradientTable() throw(); virtual NameOrIndex* createItem() const throw() SAL_OVERRIDE; diff --git a/svx/source/unogallery/unogalitem.hxx b/svx/source/unogallery/unogalitem.hxx index 9b57dafd3bdd..e579e0efa88e 100644 --- a/svx/source/unogallery/unogalitem.hxx +++ b/svx/source/unogallery/unogalitem.hxx @@ -107,7 +107,7 @@ class GalleryDrawingModel : public SvxUnoDrawingModel { public: - GalleryDrawingModel( SdrModel* pDoc ) throw(); + explicit GalleryDrawingModel( SdrModel* pDoc ) throw(); virtual ~GalleryDrawingModel() throw(); UNO3_GETIMPLEMENTATION_DECL( GalleryDrawingModel ) diff --git a/svx/source/unogallery/unogaltheme.hxx b/svx/source/unogallery/unogaltheme.hxx index 88d8afd86582..f09222c564d3 100644 --- a/svx/source/unogallery/unogaltheme.hxx +++ b/svx/source/unogallery/unogaltheme.hxx @@ -47,7 +47,7 @@ class GalleryTheme : public ::cppu::WeakImplHelper2< public: - GalleryTheme( const OUString& rThemeName ); + explicit GalleryTheme( const OUString& rThemeName ); virtual ~GalleryTheme(); static OUString getImplementationName_Static() throw(); diff --git a/svx/source/xml/xmlgrhlp.cxx b/svx/source/xml/xmlgrhlp.cxx index dba2a919ce3d..0088c7926fbb 100644 --- a/svx/source/xml/xmlgrhlp.cxx +++ b/svx/source/xml/xmlgrhlp.cxx @@ -90,7 +90,7 @@ private: public: - SvXMLGraphicInputStream( const OUString& rGraphicId ); + explicit SvXMLGraphicInputStream( const OUString& rGraphicId ); virtual ~SvXMLGraphicInputStream(); bool Exists() const { return mxStmWrapper.is(); } @@ -914,7 +914,7 @@ class SvXMLGraphicImportExportHelper : public impl::SvXMLGraphicImportExportHelper_Base { public: - SvXMLGraphicImportExportHelper( SvXMLGraphicHelperMode eMode ); + explicit SvXMLGraphicImportExportHelper( SvXMLGraphicHelperMode eMode ); protected: // is called from WeakComponentImplHelper when XComponent::dispose() was diff --git a/svx/source/xml/xmlxtexp.cxx b/svx/source/xml/xmlxtexp.cxx index 7a582966b10e..aa9107a65a52 100644 --- a/svx/source/xml/xmlxtexp.cxx +++ b/svx/source/xml/xmlxtexp.cxx @@ -66,7 +66,7 @@ using com::sun::star::embed::XTransactedObject; class SvxXMLTableEntryExporter { public: - SvxXMLTableEntryExporter( SvXMLExport& rExport ) : mrExport( rExport ) {} + explicit SvxXMLTableEntryExporter( SvXMLExport& rExport ) : mrExport( rExport ) {} virtual ~SvxXMLTableEntryExporter(); virtual void exportEntry( const OUString& rStrName, const Any& rValue ) = 0; @@ -78,7 +78,7 @@ protected: class SvxXMLColorEntryExporter : public SvxXMLTableEntryExporter { public: - SvxXMLColorEntryExporter( SvXMLExport& rExport ); + explicit SvxXMLColorEntryExporter( SvXMLExport& rExport ); virtual ~SvxXMLColorEntryExporter(); virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE; @@ -87,7 +87,7 @@ public: class SvxXMLLineEndEntryExporter : public SvxXMLTableEntryExporter { public: - SvxXMLLineEndEntryExporter( SvXMLExport& rExport ); + explicit SvxXMLLineEndEntryExporter( SvXMLExport& rExport ); virtual ~SvxXMLLineEndEntryExporter(); virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE; @@ -98,7 +98,7 @@ private: class SvxXMLDashEntryExporter : public SvxXMLTableEntryExporter { public: - SvxXMLDashEntryExporter( SvXMLExport& rExport ); + explicit SvxXMLDashEntryExporter( SvXMLExport& rExport ); virtual ~SvxXMLDashEntryExporter(); virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE; @@ -110,7 +110,7 @@ private: class SvxXMLHatchEntryExporter : public SvxXMLTableEntryExporter { public: - SvxXMLHatchEntryExporter( SvXMLExport& rExport ); + explicit SvxXMLHatchEntryExporter( SvXMLExport& rExport ); virtual ~SvxXMLHatchEntryExporter(); virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE; @@ -121,7 +121,7 @@ private: class SvxXMLGradientEntryExporter : public SvxXMLTableEntryExporter { public: - SvxXMLGradientEntryExporter( SvXMLExport& rExport ); + explicit SvxXMLGradientEntryExporter( SvXMLExport& rExport ); virtual ~SvxXMLGradientEntryExporter(); virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE; @@ -132,7 +132,7 @@ private: class SvxXMLBitmapEntryExporter : public SvxXMLTableEntryExporter { public: - SvxXMLBitmapEntryExporter( SvXMLExport& rExport ); + explicit SvxXMLBitmapEntryExporter( SvXMLExport& rExport ); virtual ~SvxXMLBitmapEntryExporter(); virtual void exportEntry( const OUString& rStrName, const Any& rValue ) SAL_OVERRIDE; diff --git a/svx/workben/msview/msview.cxx b/svx/workben/msview/msview.cxx index b03b14b1d585..aff2e4e12394 100644 --- a/svx/workben/msview/msview.cxx +++ b/svx/workben/msview/msview.cxx @@ -503,13 +503,10 @@ public: } }; - - - class AtomContainerTreeListBox : public SvTreeListBox { public: - AtomContainerTreeListBox( vcl::Window* pParent ); + explicit AtomContainerTreeListBox( vcl::Window* pParent ); ~AtomContainerTreeListBox(); void SetRootAtom( const Atom* pAtom ); @@ -705,14 +702,12 @@ void AtomContainerTreeListBox::InsertAtom( const Atom* pAtom, SvTreeListEntry* p } } - - extern void load_config( const OUString& rPath ); class PPTDocument { public: - PPTDocument( const OUString& rFilePath ); + explicit PPTDocument( const OUString& rFilePath ); ~PPTDocument(); Atom* getRootAtom() const; diff --git a/svx/workben/msview/xmlconfig.hxx b/svx/workben/msview/xmlconfig.hxx index b9696023cf28..cf563f70fc64 100644 --- a/svx/workben/msview/xmlconfig.hxx +++ b/svx/workben/msview/xmlconfig.hxx @@ -33,8 +33,8 @@ class ElementConfig public: ElementConfig() : mnType( ECT_HEXDUMP ) {} ElementConfig( const OUString& rName, ElementConfigType rType ) : maName( rName ), mnType( rType ) {} - ElementConfig( const OUString& rName ) : maName( rName ) {} - ElementConfig( ElementConfigType rType ) : mnType( rType ) {} + explicit ElementConfig( const OUString& rName ) : maName( rName ) {} + explicit ElementConfig( ElementConfigType rType ) : mnType( rType ) {} virtual OUString format( SvStream& rStream, sal_Size& nLength ) const; @@ -73,8 +73,8 @@ class ElementConfigContainer : public ElementConfig public: ElementConfigContainer() : ElementConfig( ETC_CONTAINER ) {} ElementConfigContainer( const OUString& rName, ElementConfigType rType ) : ElementConfig( rName, rType ) {} - ElementConfigContainer( const OUString& rName ) : ElementConfig( rName, ETC_CONTAINER ) {} - ElementConfigContainer( ElementConfigType rType ) : ElementConfig( rType ) {} + explicit ElementConfigContainer( const OUString& rName ) : ElementConfig( rName, ETC_CONTAINER ) {} + explicit ElementConfigContainer( ElementConfigType rType ) : ElementConfig( rType ) {} virtual OUString format( SvStream& rStream, sal_Size& nLength ) const; @@ -89,7 +89,7 @@ protected: class CaseElementConfig : public ElementConfigContainer { public: - CaseElementConfig( const OUString& rValue ) : maValue( rValue ) {} + explicit CaseElementConfig( const OUString& rValue ) : maValue( rValue ) {} const OUString& getValue() const { return maValue; } @@ -97,18 +97,14 @@ private: OUString maValue; }; - - class SwitchElementConfig : public ElementConfigContainer { public: - SwitchElementConfig( ElementConfigType rType ) : ElementConfigContainer( rType ) {} + explicit SwitchElementConfig( ElementConfigType rType ) : ElementConfigContainer( rType ) {} virtual OUString format( SvStream& rStream, sal_Size& nLength ) const; }; - - class AtomConfig : public ElementConfigContainer { public: |