From 6cbdd2a141d906d941831496e0e697823fac3753 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Thu, 14 May 2015 13:38:34 +0100 Subject: cppcheck: noExplicitConstructor Change-Id: I42d135456c7f9ce8bbd77db553be96149e4e75af --- basctl/source/basicide/basicrenderable.hxx | 2 +- basctl/source/basicide/baside2.hxx | 14 +++++++------- basctl/source/basicide/baside2b.cxx | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'basctl') diff --git a/basctl/source/basicide/basicrenderable.hxx b/basctl/source/basicide/basicrenderable.hxx index dd60f1653b03..e48ffecc1f94 100644 --- a/basctl/source/basicide/basicrenderable.hxx +++ b/basctl/source/basicide/basicrenderable.hxx @@ -38,7 +38,7 @@ class Renderable : VclPtr getPrinter(); public: - Renderable (BaseWindow*); + explicit Renderable (BaseWindow*); virtual ~Renderable(); // XRenderable diff --git a/basctl/source/basicide/baside2.hxx b/basctl/source/basicide/baside2.hxx index 326c621ea53d..401553aa26a9 100644 --- a/basctl/source/basicide/baside2.hxx +++ b/basctl/source/basicide/baside2.hxx @@ -242,8 +242,8 @@ protected: public: - WatchWindow (Layout* pParent); - virtual ~WatchWindow(); + explicit WatchWindow (Layout* pParent); + virtual ~WatchWindow(); virtual void dispose() SAL_OVERRIDE; void AddWatch( const OUString& rVName ); @@ -265,8 +265,8 @@ protected: virtual void Paint( vcl::RenderContext& rRenderContext, const Rectangle& rRect ) SAL_OVERRIDE; public: - StackWindow (Layout* pParent); - virtual ~StackWindow(); + explicit StackWindow (Layout* pParent); + virtual ~StackWindow(); virtual void dispose() SAL_OVERRIDE; void UpdateCalls(); @@ -288,7 +288,7 @@ protected: DECL_LINK( ScrollHdl, ScrollBar * ); public: - ComplexEditorWindow( ModulWindow* pParent ); + explicit ComplexEditorWindow( ModulWindow* pParent ); virtual ~ComplexEditorWindow(); virtual void dispose() SAL_OVERRIDE; BreakPointWindow& GetBrkWindow() { return *aBrkWindow.get(); } @@ -496,7 +496,7 @@ private: ExtTextView* GetParentEditView(); public: - CodeCompleteListBox( CodeCompleteWindow* pPar ); + explicit CodeCompleteListBox( CodeCompleteWindow* pPar ); virtual ~CodeCompleteListBox(); virtual void dispose() SAL_OVERRIDE; void InsertSelectedEntry(); //insert the selected entry @@ -519,7 +519,7 @@ private: void InitListBox(); // initialize the ListBox public: - CodeCompleteWindow( EditorWindow* pPar ); + explicit CodeCompleteWindow( EditorWindow* pPar ); virtual ~CodeCompleteWindow(); virtual void dispose() SAL_OVERRIDE; diff --git a/basctl/source/basicide/baside2b.cxx b/basctl/source/basicide/baside2b.cxx index 098c8d3bb1ed..351bc13da347 100644 --- a/basctl/source/basicide/baside2b.cxx +++ b/basctl/source/basicide/baside2b.cxx @@ -179,7 +179,7 @@ class EditorWindow::ChangesListener: public cppu::WeakImplHelper1< beans::XPropertiesChangeListener > { public: - ChangesListener(EditorWindow & editor): editor_(editor) {} + explicit ChangesListener(EditorWindow & editor): editor_(editor) {} private: virtual ~ChangesListener() {} @@ -1708,7 +1708,7 @@ struct WatchItem WatchItem* mpArrayParentItem; - WatchItem (OUString const& rName): + explicit WatchItem (OUString const& rName): maName(rName), nDimLevel(0), nDimCount(0), -- cgit