summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-25 10:27:49 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-07-27 11:02:28 +0100
commit93f9a32cdf720ee76f56f987a1ded2fd89145659 (patch)
treeaec5db5970a272b0d60244c46e6c3939201159c3
parent80ee8f832f8247f9189270121fc4b3fe64a9be71 (diff)
cppcheck: noExplicitConstructor
Change-Id: Id0a6cd461b2ba56e3b9b944514f3b0d0eb75cc44
-rw-r--r--sc/source/ui/undo/undobase.cxx2
-rw-r--r--sd/source/ui/animations/CustomAnimationBox.cxx2
-rw-r--r--sd/source/ui/animations/SlideTransitionBox.cxx2
-rw-r--r--sd/source/ui/table/TableDesignBox.cxx2
-rw-r--r--sd/source/ui/unoidl/unoobj.cxx2
-rw-r--r--sfx2/source/notebookbar/DropdownBox.cxx2
-rw-r--r--sfx2/source/notebookbar/DropdownBox.hxx2
-rw-r--r--sfx2/source/notebookbar/NotebookBarPopupMenu.hxx2
-rw-r--r--sfx2/source/notebookbar/PriorityHBox.cxx2
-rw-r--r--starmath/source/uiobject.hxx2
-rw-r--r--sw/source/core/ole/ndole.cxx4
-rw-r--r--toolkit/source/awt/vclxtoolkit.cxx2
-rw-r--r--vcl/source/control/notebookbar.cxx2
-rw-r--r--vcl/source/uitest/uno/uiobject_uno.hxx2
14 files changed, 15 insertions, 15 deletions
diff --git a/sc/source/ui/undo/undobase.cxx b/sc/source/ui/undo/undobase.cxx
index 63e201d3754e..eefce30f3ff1 100644
--- a/sc/source/ui/undo/undobase.cxx
+++ b/sc/source/ui/undo/undobase.cxx
@@ -104,7 +104,7 @@ namespace
ScDocument& m_rDoc;
bool m_bUndoEnabled;
public:
- DisableUndoGuard(ScDocShell *pDocShell)
+ explicit DisableUndoGuard(ScDocShell *pDocShell)
: m_rDoc(pDocShell->GetDocument())
, m_bUndoEnabled(m_rDoc.IsUndoEnabled())
{
diff --git a/sd/source/ui/animations/CustomAnimationBox.cxx b/sd/source/ui/animations/CustomAnimationBox.cxx
index d37de232d6f1..b0e07c0c411a 100644
--- a/sd/source/ui/animations/CustomAnimationBox.cxx
+++ b/sd/source/ui/animations/CustomAnimationBox.cxx
@@ -32,7 +32,7 @@ class CustomAnimationBox : public VclVBox
bool m_bIsInitialized;
public:
- CustomAnimationBox(vcl::Window* pParent);
+ explicit CustomAnimationBox(vcl::Window* pParent);
~CustomAnimationBox() override;
virtual void dispose() override;
diff --git a/sd/source/ui/animations/SlideTransitionBox.cxx b/sd/source/ui/animations/SlideTransitionBox.cxx
index 7a700106c48c..1cc992a029f3 100644
--- a/sd/source/ui/animations/SlideTransitionBox.cxx
+++ b/sd/source/ui/animations/SlideTransitionBox.cxx
@@ -33,7 +33,7 @@ class SlideTransitionBox : public VclVBox
bool m_bIsInitialized;
public:
- SlideTransitionBox(vcl::Window* pParent);
+ explicit SlideTransitionBox(vcl::Window* pParent);
~SlideTransitionBox() override;
virtual void dispose() override;
diff --git a/sd/source/ui/table/TableDesignBox.cxx b/sd/source/ui/table/TableDesignBox.cxx
index 981a9dcf4095..6fa129990ae3 100644
--- a/sd/source/ui/table/TableDesignBox.cxx
+++ b/sd/source/ui/table/TableDesignBox.cxx
@@ -32,7 +32,7 @@ class TableDesignBox : public VclVBox
bool m_bIsInitialized;
public:
- TableDesignBox(vcl::Window* pParent);
+ explicit TableDesignBox(vcl::Window* pParent);
~TableDesignBox() override;
virtual void dispose() override;
diff --git a/sd/source/ui/unoidl/unoobj.cxx b/sd/source/ui/unoidl/unoobj.cxx
index 4051fa4a7eda..4d49bb3eeaad 100644
--- a/sd/source/ui/unoidl/unoobj.cxx
+++ b/sd/source/ui/unoidl/unoobj.cxx
@@ -1113,7 +1113,7 @@ private:
SdXShape* mpShape;
public:
- SdUnoEventsAccess( SdXShape* pShape ) throw();
+ explicit SdUnoEventsAccess(SdXShape* pShape) throw();
// XNameReplace
virtual void SAL_CALL replaceByName( const OUString& aName, const css::uno::Any& aElement ) throw(css::lang::IllegalArgumentException, css::container::NoSuchElementException, css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) override;
diff --git a/sfx2/source/notebookbar/DropdownBox.cxx b/sfx2/source/notebookbar/DropdownBox.cxx
index 0058c89cfade..63bf89cd8e53 100644
--- a/sfx2/source/notebookbar/DropdownBox.cxx
+++ b/sfx2/source/notebookbar/DropdownBox.cxx
@@ -37,7 +37,7 @@ private:
ScopedVclPtr<DropdownBox> m_pParent;
public:
- Popup(VclPtr<DropdownBox> pParent)
+ explicit Popup(VclPtr<DropdownBox> pParent)
: FloatingWindow(pParent, "Popup", "sfx/ui/notebookbarpopup.ui")
, m_pParent(pParent)
{
diff --git a/sfx2/source/notebookbar/DropdownBox.hxx b/sfx2/source/notebookbar/DropdownBox.hxx
index a44d9708017d..cf6011bae4fb 100644
--- a/sfx2/source/notebookbar/DropdownBox.hxx
+++ b/sfx2/source/notebookbar/DropdownBox.hxx
@@ -38,7 +38,7 @@ private:
VclPtr<Popup> m_pPopup;
public:
- DropdownBox(vcl::Window *pParent);
+ explicit DropdownBox(vcl::Window *pParent);
virtual ~DropdownBox() override;
virtual void dispose() override;
diff --git a/sfx2/source/notebookbar/NotebookBarPopupMenu.hxx b/sfx2/source/notebookbar/NotebookBarPopupMenu.hxx
index 2fca13512849..b8ea6c6aec88 100644
--- a/sfx2/source/notebookbar/NotebookBarPopupMenu.hxx
+++ b/sfx2/source/notebookbar/NotebookBarPopupMenu.hxx
@@ -15,7 +15,7 @@
class NotebookBarPopupMenu : public PopupMenu
{
public:
- NotebookBarPopupMenu(ResId aRes);
+ explicit NotebookBarPopupMenu(ResId aRes);
void Execute(NotebookBar* pNotebookbar,
css::uno::Reference<css::frame::XFrame>& xFrame);
};
diff --git a/sfx2/source/notebookbar/PriorityHBox.cxx b/sfx2/source/notebookbar/PriorityHBox.cxx
index 52ce58aa9f16..0b02f6325160 100644
--- a/sfx2/source/notebookbar/PriorityHBox.cxx
+++ b/sfx2/source/notebookbar/PriorityHBox.cxx
@@ -45,7 +45,7 @@ private:
std::vector<IPrioritable*> m_aSortedChilds;
public:
- PriorityHBox(vcl::Window *pParent)
+ explicit PriorityHBox(vcl::Window *pParent)
: VclHBox(pParent)
, m_bInitialized(false)
, m_nNeededWidth(0)
diff --git a/starmath/source/uiobject.hxx b/starmath/source/uiobject.hxx
index 1975b8887222..4ad22491d48c 100644
--- a/starmath/source/uiobject.hxx
+++ b/starmath/source/uiobject.hxx
@@ -42,7 +42,7 @@ private:
public:
- ElementSelectorUIObject(VclPtr<SmElementsControl> xElementSelector);
+ explicit ElementSelectorUIObject(VclPtr<SmElementsControl> xElementSelector);
virtual StringMap get_state() override;
diff --git a/sw/source/core/ole/ndole.cxx b/sw/source/core/ole/ndole.cxx
index 46197375c712..6f94d013fdd1 100644
--- a/sw/source/core/ole/ndole.cxx
+++ b/sw/source/core/ole/ndole.cxx
@@ -664,7 +664,7 @@ private:
std::shared_ptr<comphelper::ThreadTaskTag> mpTag;
public:
- DeflateData(const uno::Reference< frame::XModel >& rXModel)
+ explicit DeflateData(const uno::Reference< frame::XModel >& rXModel)
: maXModel(rXModel),
maPrimitive2DSequence(),
maRange(),
@@ -712,7 +712,7 @@ class DeflateThread : public comphelper::ThreadTask
DeflateData& mrDeflateData;
public:
- DeflateThread(DeflateData& rDeflateData)
+ explicit DeflateThread(DeflateData& rDeflateData)
: comphelper::ThreadTask(rDeflateData.mpTag), mrDeflateData(rDeflateData)
{
}
diff --git a/toolkit/source/awt/vclxtoolkit.cxx b/toolkit/source/awt/vclxtoolkit.cxx
index 7916de775756..d616e04fff0d 100644
--- a/toolkit/source/awt/vclxtoolkit.cxx
+++ b/toolkit/source/awt/vclxtoolkit.cxx
@@ -146,7 +146,7 @@ extern "C" typedef vcl::Window* (SAL_CALL *FN_SvtCreateWindow)(
class Pause : public Idle
{
public:
- Pause(sal_Int32 nPauseMilliseconds) :
+ explicit Pause(sal_Int32 nPauseMilliseconds) :
Idle("pause"),
m_nPauseMilliseconds(nPauseMilliseconds)
{
diff --git a/vcl/source/control/notebookbar.cxx b/vcl/source/control/notebookbar.cxx
index a47cb038315f..cb2611dd0351 100644
--- a/vcl/source/control/notebookbar.cxx
+++ b/vcl/source/control/notebookbar.cxx
@@ -19,7 +19,7 @@ class NotebookBarContextChangeEventListener : public ::cppu::WeakImplHelper<css:
{
VclPtr<NotebookBar> mpParent;
public:
- NotebookBarContextChangeEventListener(NotebookBar *p) : mpParent(p) {}
+ explicit NotebookBarContextChangeEventListener(NotebookBar *p) : mpParent(p) {}
virtual ~NotebookBarContextChangeEventListener() {}
// XContextChangeEventListener
diff --git a/vcl/source/uitest/uno/uiobject_uno.hxx b/vcl/source/uitest/uno/uiobject_uno.hxx
index fe0669a0c977..33841121e880 100644
--- a/vcl/source/uitest/uno/uiobject_uno.hxx
+++ b/vcl/source/uitest/uno/uiobject_uno.hxx
@@ -34,7 +34,7 @@ private:
public:
- UIObjectUnoObj(std::unique_ptr<UIObject> pObj);
+ explicit UIObjectUnoObj(std::unique_ptr<UIObject> pObj);
virtual ~UIObjectUnoObj();
css::uno::Reference<css::ui::test::XUIObject> SAL_CALL getChild(const OUString& rID)