summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-04-04 11:16:06 +0100
committerCaolán McNamara <caolanm@redhat.com>2016-04-04 11:16:06 +0100
commit6b2d75f966140746e4fed4c0dd43a452e0cfdbae (patch)
tree0a962ec811c886a79e6542af813e074810274038 /sw
parent03d3506286eca8140e17b8473b9f33fa02da4f0c (diff)
cppcheck: noExplicitConstructor
Change-Id: I68310e2abc8f0ca114adb2b52f82157a0f455202
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/dbui/addresslistdialog.cxx2
-rw-r--r--sw/source/ui/dbui/selectdbtabledialog.cxx2
-rw-r--r--sw/source/ui/index/cnttab.cxx2
-rw-r--r--sw/source/uibase/dbui/mailmergetoolbarcontrols.cxx4
-rw-r--r--sw/source/uibase/utlui/content.cxx2
5 files changed, 6 insertions, 6 deletions
diff --git a/sw/source/ui/dbui/addresslistdialog.cxx b/sw/source/ui/dbui/addresslistdialog.cxx
index db528db9ec0c..ad7797d877af 100644
--- a/sw/source/ui/dbui/addresslistdialog.cxx
+++ b/sw/source/ui/dbui/addresslistdialog.cxx
@@ -135,7 +135,7 @@ static OUString lcl_getFlatURL( uno::Reference<beans::XPropertySet>& xSourceProp
class SwAddrSourceLB : public SvSimpleTable
{
public:
- SwAddrSourceLB(SvSimpleTableContainer& rParent)
+ explicit SwAddrSourceLB(SvSimpleTableContainer& rParent)
: SvSimpleTable(rParent, 0)
{
}
diff --git a/sw/source/ui/dbui/selectdbtabledialog.cxx b/sw/source/ui/dbui/selectdbtabledialog.cxx
index 549af3928a47..5c02c694bcb8 100644
--- a/sw/source/ui/dbui/selectdbtabledialog.cxx
+++ b/sw/source/ui/dbui/selectdbtabledialog.cxx
@@ -45,7 +45,7 @@ using namespace ::com::sun::star::beans;
class SwAddressTable : public SvSimpleTable
{
public:
- SwAddressTable(SvSimpleTableContainer& rParent);
+ explicit SwAddressTable(SvSimpleTableContainer& rParent);
void InsertHeaderItem(sal_uInt16 nColumn, const OUString& rText, HeaderBarItemBits nBits);
virtual void Resize() override;
void setColSizes();
diff --git a/sw/source/ui/index/cnttab.cxx b/sw/source/ui/index/cnttab.cxx
index 9bd36380fd02..d6cdcd918376 100644
--- a/sw/source/ui/index/cnttab.cxx
+++ b/sw/source/ui/index/cnttab.cxx
@@ -539,7 +539,7 @@ bool SwMultiTOXTabDialog::IsNoNum(SwWrtShell& rSh, const OUString& rName)
class SwIndexTreeLB : public SvSimpleTable
{
public:
- SwIndexTreeLB(SvSimpleTableContainer& rParent);
+ explicit SwIndexTreeLB(SvSimpleTableContainer& rParent);
virtual void KeyInput( const KeyEvent& rKEvt ) override;
virtual void Resize() override;
virtual sal_IntPtr GetTabPos( SvTreeListEntry*, SvLBoxTab* ) override;
diff --git a/sw/source/uibase/dbui/mailmergetoolbarcontrols.cxx b/sw/source/uibase/dbui/mailmergetoolbarcontrols.cxx
index 1ad588b2991a..3a23913d288d 100644
--- a/sw/source/uibase/dbui/mailmergetoolbarcontrols.cxx
+++ b/sw/source/uibase/dbui/mailmergetoolbarcontrols.cxx
@@ -44,7 +44,7 @@ class MMCurrentEntryController : public svt::ToolboxController, public lang::XSe
DECL_LINK_TYPED(CurrentEditUpdatedHdl, Edit&, void);
public:
- MMCurrentEntryController(const uno::Reference<uno::XComponentContext>& rContext)
+ explicit MMCurrentEntryController(const uno::Reference<uno::XComponentContext>& rContext)
: svt::ToolboxController(rContext, uno::Reference<frame::XFrame>(), OUString(".uno:MailMergeCurrentEntry"))
, m_pCurrentEdit(nullptr)
{
@@ -112,7 +112,7 @@ class MMExcludeEntryController : public svt::ToolboxController, public lang::XSe
DECL_STATIC_LINK_TYPED(MMExcludeEntryController, ExcludeHdl, CheckBox&, void);
public:
- MMExcludeEntryController(const uno::Reference<uno::XComponentContext>& rContext)
+ explicit MMExcludeEntryController(const uno::Reference<uno::XComponentContext>& rContext)
: svt::ToolboxController(rContext, uno::Reference<frame::XFrame>(), OUString(".uno:MailMergeExcludeEntry"))
, m_pExcludeCheckbox(nullptr)
{
diff --git a/sw/source/uibase/utlui/content.cxx b/sw/source/uibase/utlui/content.cxx
index b1668522694d..5ad5c931aa18 100644
--- a/sw/source/uibase/utlui/content.cxx
+++ b/sw/source/uibase/utlui/content.cxx
@@ -3407,7 +3407,7 @@ bool NaviContentBookmark::Paste( TransferableDataHelper& rData )
class SwContentLBoxString : public SvLBoxString
{
public:
- SwContentLBoxString( const OUString& rStr ) : SvLBoxString(rStr) {}
+ explicit SwContentLBoxString(const OUString& rStr) : SvLBoxString(rStr) {}
virtual void Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;