cppcheck: noExplicitConstructor

Change-Id: Id0a6cd461b2ba56e3b9b944514f3b0d0eb75cc44
This commit is contained in:
Caolán McNamara 2016-07-25 10:27:49 +01:00
parent 80ee8f832f
commit 93f9a32cdf
14 changed files with 15 additions and 15 deletions

View File

@ -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())
{

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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)
{

View File

@ -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;

View File

@ -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);
};

View File

@ -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)

View File

@ -42,7 +42,7 @@ private:
public:
ElementSelectorUIObject(VclPtr<SmElementsControl> xElementSelector);
explicit ElementSelectorUIObject(VclPtr<SmElementsControl> xElementSelector);
virtual StringMap get_state() override;

View File

@ -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)
{
}

View File

@ -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)
{

View File

@ -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

View File

@ -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)