summaryrefslogtreecommitdiffstats
path: root/sc/workben
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-02 09:52:33 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-02 10:16:38 +0000
commit4ea0390faa22037f1d4f703c0882a027cf2ae643 (patch)
treecbcc7db6e327ef0efa53d26241fc48f0ff2ee90f /sc/workben
parentsc lok: emit RowColumnHeader info in twips (diff)
downloadcore-4ea0390faa22037f1d4f703c0882a027cf2ae643.tar.gz
core-4ea0390faa22037f1d4f703c0882a027cf2ae643.zip
cppcheck: noExplicitConstructor
Change-Id: I06186e8f0bbc8522f538e8639a68e816093becc2
Diffstat (limited to 'sc/workben')
-rw-r--r--sc/workben/dpcache/perf-test.cpp4
-rw-r--r--sc/workben/result.hxx2
-rw-r--r--sc/workben/test.cxx6
3 files changed, 6 insertions, 6 deletions
diff --git a/sc/workben/dpcache/perf-test.cpp b/sc/workben/dpcache/perf-test.cpp
index 000188a41494..579163113d27 100644
--- a/sc/workben/dpcache/perf-test.cpp
+++ b/sc/workben/dpcache/perf-test.cpp
@@ -283,7 +283,7 @@ class push_back_value : std::unary_function<bucket, void>
{
values_type& items;
public:
- push_back_value(values_type& _items) : items(_items) {}
+ explicit push_back_value(values_type& _items) : items(_items) {}
void operator() (const bucket& v)
{
items.push_back(v.value);
@@ -294,7 +294,7 @@ class push_back_order_index : std::unary_function<bucket, void>
{
indices_type& data_indices;
public:
- push_back_order_index(indices_type& _items) : data_indices(_items) {}
+ explicit push_back_order_index(indices_type& _items) : data_indices(_items) {}
void operator() (const bucket& v)
{
data_indices.push_back(v.order_index);
diff --git a/sc/workben/result.hxx b/sc/workben/result.hxx
index 7fd7ed989af2..e0f796af0b5e 100644
--- a/sc/workben/result.hxx
+++ b/sc/workben/result.hxx
@@ -43,7 +43,7 @@ private:
void NewValue();
public:
- ScAddInResult(const String& rStr);
+ explicit ScAddInResult(const String& rStr);
virtual ~ScAddInResult();
// XVolatileResult
diff --git a/sc/workben/test.cxx b/sc/workben/test.cxx
index 26f114d97896..a3ebd5966e9b 100644
--- a/sc/workben/test.cxx
+++ b/sc/workben/test.cxx
@@ -54,7 +54,7 @@ class MyFixedText : public FixedText
protected:
void RequestHelp( const HelpEvent& rHEvt );
public:
- MyFixedText(vcl::Window* pParent) : FixedText(pParent) {}
+ explicit MyFixedText(vcl::Window* pParent) : FixedText(pParent) {}
};
class MyWindow : public vcl::Window
@@ -74,7 +74,7 @@ private:
PushButton aViewButton;
public:
- MyWindow( vcl::Window *pParent );
+ explicit MyWindow( vcl::Window *pParent );
DECL_LINK_TYPED(CountHdl, PushButton*, void);
DECL_LINK_TYPED(TextHdl, PushButton*, void);
@@ -89,7 +89,7 @@ private:
FixedText* pFixedText;
public:
- ScTestListener(FixedText* pF);
+ expliciti ScTestListener(FixedText* pF);
virtual ~ScTestListener();
SMART_UNO_DECLARATION( ScTestListener, UsrObject );