summaryrefslogtreecommitdiff
path: root/cui
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 /cui
parent03d3506286eca8140e17b8473b9f33fa02da4f0c (diff)
cppcheck: noExplicitConstructor
Change-Id: I68310e2abc8f0ca114adb2b52f82157a0f455202
Diffstat (limited to 'cui')
-rw-r--r--cui/source/customize/cfg.cxx7
-rw-r--r--cui/source/options/optHeaderTabListbox.cxx6
-rw-r--r--cui/source/options/optlingu.cxx4
-rw-r--r--cui/source/tabpages/autocdlg.cxx2
4 files changed, 11 insertions, 8 deletions
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index ed88815bc6f2..d89f288a1dcf 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1555,9 +1555,10 @@ void ContextMenuSaveInData::Reset()
class PopupPainter : public SvLBoxString
{
public:
- PopupPainter( const OUString& rStr )
- : SvLBoxString( rStr )
- { }
+ explicit PopupPainter(const OUString& rStr)
+ : SvLBoxString(rStr)
+ {
+ }
virtual ~PopupPainter() { }
diff --git a/cui/source/options/optHeaderTabListbox.cxx b/cui/source/options/optHeaderTabListbox.cxx
index 5a6039b42ac2..15ea670b8fc7 100644
--- a/cui/source/options/optHeaderTabListbox.cxx
+++ b/cui/source/options/optHeaderTabListbox.cxx
@@ -31,8 +31,10 @@ namespace svx
class OptLBoxString_Impl : public SvLBoxString
{
public:
- OptLBoxString_Impl( const OUString& rTxt ) :
- SvLBoxString( rTxt ) {}
+ explicit OptLBoxString_Impl(const OUString& rTxt)
+ : SvLBoxString(rTxt)
+ {
+ }
virtual void Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;
diff --git a/cui/source/options/optlingu.cxx b/cui/source/options/optlingu.cxx
index 450f0eca0526..fd1cdd5dcdb8 100644
--- a/cui/source/options/optlingu.cxx
+++ b/cui/source/options/optlingu.cxx
@@ -260,7 +260,7 @@ class BrwStringDic_Impl : public SvLBoxString
{
public:
- BrwStringDic_Impl( const OUString& rStr ) : SvLBoxString( rStr ) {}
+ explicit BrwStringDic_Impl( const OUString& rStr ) : SvLBoxString( rStr ) {}
virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;
@@ -436,7 +436,7 @@ class BrwString_Impl : public SvLBoxString
{
public:
- BrwString_Impl( const OUString& rStr ) : SvLBoxString( rStr ) {}
+ explicit BrwString_Impl( const OUString& rStr ) : SvLBoxString( rStr ) {}
virtual void Paint(const Point& rPos, SvTreeListBox& rOutDev, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx
index 3122aaeec818..4dccaf5238b5 100644
--- a/cui/source/tabpages/autocdlg.cxx
+++ b/cui/source/tabpages/autocdlg.cxx
@@ -330,7 +330,7 @@ class OfaImpBrwString : public SvLBoxString
{
public:
- OfaImpBrwString( const OUString& rStr ) : SvLBoxString(rStr){}
+ explicit OfaImpBrwString( const OUString& rStr ) : SvLBoxString(rStr){}
virtual void Paint(const Point& rPos, SvTreeListBox& rDev, vcl::RenderContext& rRenderContext,
const SvViewDataEntry* pView, const SvTreeListEntry& rEntry) override;