summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-11-01 11:44:15 +0100
committerJochen Nitschke <j.nitschke+logerrit@ok.de>2016-11-01 18:44:20 +0000
commit8826771e8398063018935c38039c05faf4c993a3 (patch)
treef726abbbc99a3a1c39c726a47f5f121573ab1c8b /sc
parent33bc51a60523f23a860534a39a096fecce192671 (diff)
style fixes for cppcheck noExplicitConstructor
Change-Id: I2a690caea7656f2a18beb6d09f53154178a30f34 Reviewed-on: https://gerrit.libreoffice.org/30460 Reviewed-by: Jochen Nitschke <j.nitschke+logerrit@ok.de> Tested-by: Jochen Nitschke <j.nitschke+logerrit@ok.de>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/documentimport.cxx2
-rw-r--r--sc/source/core/tool/bulkdatahint.cxx2
-rw-r--r--sc/source/filter/xml/XMLTableShapeImportHelper.hxx2
-rw-r--r--sc/source/ui/sidebar/CellBorderStyleControl.hxx2
-rw-r--r--sc/source/ui/sidebar/CellLineStyleControl.hxx2
-rw-r--r--sc/source/ui/sidebar/CellLineStyleValueSet.hxx2
6 files changed, 6 insertions, 6 deletions
diff --git a/sc/source/core/data/documentimport.cxx b/sc/source/core/data/documentimport.cxx
index d8ebcfed0a70..69f66cd4b080 100644
--- a/sc/source/core/data/documentimport.cxx
+++ b/sc/source/core/data/documentimport.cxx
@@ -500,7 +500,7 @@ class CellStoreInitializer
sc::CellTextAttrStoreType::iterator miPos;
SvtScriptType mnScriptNumeric;
- Impl(const SvtScriptType nScriptNumeric)
+ explicit Impl(const SvtScriptType nScriptNumeric)
: maAttrs(MAXROWCOUNT), miPos(maAttrs.begin()), mnScriptNumeric(nScriptNumeric)
{}
};
diff --git a/sc/source/core/tool/bulkdatahint.cxx b/sc/source/core/tool/bulkdatahint.cxx
index bdd02152105d..506942a23faa 100644
--- a/sc/source/core/tool/bulkdatahint.cxx
+++ b/sc/source/core/tool/bulkdatahint.cxx
@@ -16,7 +16,7 @@ struct BulkDataHint::Impl
ScDocument& mrDoc;
const ColumnSpanSet* mpSpans;
- Impl( ScDocument& rDoc ) :
+ explicit Impl( ScDocument& rDoc ) :
mrDoc(rDoc),
mpSpans(nullptr) {}
};
diff --git a/sc/source/filter/xml/XMLTableShapeImportHelper.hxx b/sc/source/filter/xml/XMLTableShapeImportHelper.hxx
index ceadd12b65b1..1bb7d70cccb1 100644
--- a/sc/source/filter/xml/XMLTableShapeImportHelper.hxx
+++ b/sc/source/filter/xml/XMLTableShapeImportHelper.hxx
@@ -34,7 +34,7 @@ class XMLTableShapeImportHelper : public XMLShapeImportHelper
public:
- XMLTableShapeImportHelper( ScXMLImport& rImp );
+ explicit XMLTableShapeImportHelper( ScXMLImport& rImp );
virtual ~XMLTableShapeImportHelper() override;
static void SetLayer(css::uno::Reference<css::drawing::XShape>& rShape, sal_Int16 nLayerID, const OUString& sType);
diff --git a/sc/source/ui/sidebar/CellBorderStyleControl.hxx b/sc/source/ui/sidebar/CellBorderStyleControl.hxx
index 28c5c16d0654..a288f1a3eaca 100644
--- a/sc/source/ui/sidebar/CellBorderStyleControl.hxx
+++ b/sc/source/ui/sidebar/CellBorderStyleControl.hxx
@@ -43,7 +43,7 @@ private:
DECL_LINK(TB3SelectHdl, ToolBox *, void);
public:
- CellBorderStylePopup(SfxDispatcher* pDispatcher);
+ explicit CellBorderStylePopup(SfxDispatcher* pDispatcher);
virtual ~CellBorderStylePopup() override;
virtual void dispose() override;
};
diff --git a/sc/source/ui/sidebar/CellLineStyleControl.hxx b/sc/source/ui/sidebar/CellLineStyleControl.hxx
index ea5f090d1c02..399ff9a260be 100644
--- a/sc/source/ui/sidebar/CellLineStyleControl.hxx
+++ b/sc/source/ui/sidebar/CellLineStyleControl.hxx
@@ -44,7 +44,7 @@ class CellLineStylePopup : public FloatingWindow
public:
- CellLineStylePopup(SfxDispatcher* pDispatcher);
+ explicit CellLineStylePopup(SfxDispatcher* pDispatcher);
void SetLineStyleSelect(sal_uInt16 out, sal_uInt16 in, sal_uInt16 dis);
virtual ~CellLineStylePopup() override;
virtual void dispose() override;
diff --git a/sc/source/ui/sidebar/CellLineStyleValueSet.hxx b/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
index 3e87b310dda7..edc3c8a15ab1 100644
--- a/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
+++ b/sc/source/ui/sidebar/CellLineStyleValueSet.hxx
@@ -33,7 +33,7 @@ private:
sal_uInt16 nSelItem;
OUString maStrUnit[CELL_LINE_STYLE_ENTRIES];
public:
- CellLineStyleValueSet(vcl::Window* pParent);
+ explicit CellLineStyleValueSet(vcl::Window* pParent);
virtual ~CellLineStyleValueSet() override;
virtual void dispose() override;