summaryrefslogtreecommitdiff
path: root/sc/source/filter/orcus
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2015-11-02 16:08:41 +0000
committerCaolán McNamara <caolanm@redhat.com>2015-11-02 16:30:13 +0000
commit5d0ef0015dee175802b468c6a946b967d17eef33 (patch)
tree9ba969fc393fbd7ef5c153844ca22ab7791b4f2d /sc/source/filter/orcus
parent3f7c8ce1dca7eacb511def7799691be2e3d9a4a6 (diff)
cppcheck: noExplicitConstructor
Change-Id: Ia5aba89f02ee4d99dd573599a3888731efb131b9
Diffstat (limited to 'sc/source/filter/orcus')
-rw-r--r--sc/source/filter/orcus/interface.cxx2
-rw-r--r--sc/source/filter/orcus/xmlcontext.cxx4
2 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/filter/orcus/interface.cxx b/sc/source/filter/orcus/interface.cxx
index 25d1475c5d14..be14ec89b8e0 100644
--- a/sc/source/filter/orcus/interface.cxx
+++ b/sc/source/filter/orcus/interface.cxx
@@ -82,7 +82,7 @@ class FindSheetByIndex : std::unary_function<ScOrcusSheet, bool>
{
SCTAB mnTab;
public:
- FindSheetByIndex(SCTAB nTab) : mnTab(nTab) {}
+ explicit FindSheetByIndex(SCTAB nTab) : mnTab(nTab) {}
bool operator() (const ScOrcusSheet& rSheet) const
{
return rSheet.getIndex() == mnTab;
diff --git a/sc/source/filter/orcus/xmlcontext.cxx b/sc/source/filter/orcus/xmlcontext.cxx
index 0ee24a8a4586..284d7cc8b0f1 100644
--- a/sc/source/filter/orcus/xmlcontext.cxx
+++ b/sc/source/filter/orcus/xmlcontext.cxx
@@ -129,7 +129,7 @@ class TreeUpdateSwitch
{
SvTreeListBox& mrTreeCtrl;
public:
- TreeUpdateSwitch(SvTreeListBox& rTreeCtrl) : mrTreeCtrl(rTreeCtrl)
+ explicit TreeUpdateSwitch(SvTreeListBox& rTreeCtrl) : mrTreeCtrl(rTreeCtrl)
{
mrTreeCtrl.SetUpdateMode(false);
}
@@ -144,7 +144,7 @@ class InsertFieldPath : std::unary_function<OString, void>
{
orcus::orcus_xml& mrFilter;
public:
- InsertFieldPath(orcus::orcus_xml& rFilter) : mrFilter(rFilter) {}
+ explicit InsertFieldPath(orcus::orcus_xml& rFilter) : mrFilter(rFilter) {}
void operator() (const OString& rPath)
{
mrFilter.append_field_link(rPath.getStr());