diff options
26 files changed, 34 insertions, 34 deletions
diff --git a/sc/source/core/tool/interpr4.cxx b/sc/source/core/tool/interpr4.cxx index dc0e00f10c1f..6bd1da92a980 100644 --- a/sc/source/core/tool/interpr4.cxx +++ b/sc/source/core/tool/interpr4.cxx @@ -3229,7 +3229,7 @@ class FindByPointer : ::std::unary_function<ScInterpreterTableOpParams, bool> { const ScInterpreterTableOpParams* mpTableOp; public: - FindByPointer(const ScInterpreterTableOpParams* p) : mpTableOp(p) {} + explicit FindByPointer(const ScInterpreterTableOpParams* p) : mpTableOp(p) {} bool operator() (const ScInterpreterTableOpParams& val) const { return &val == mpTableOp; diff --git a/sc/source/core/tool/queryparam.cxx b/sc/source/core/tool/queryparam.cxx index 099b55d4622e..59001c9c0827 100644 --- a/sc/source/core/tool/queryparam.cxx +++ b/sc/source/core/tool/queryparam.cxx @@ -33,7 +33,7 @@ class FindByField : public std::unary_function<ScQueryEntry, bool> { SCCOLROW mnField; public: - FindByField(SCCOLROW nField) : mnField(nField) {} + explicit FindByField(SCCOLROW nField) : mnField(nField) {} bool operator() (const ScQueryEntry& rEntry) const { return rEntry.bDoQuery && rEntry.nField == mnField; diff --git a/sc/source/core/tool/rangelst.cxx b/sc/source/core/tool/rangelst.cxx index 8942f8779b85..ac6855084bcf 100644 --- a/sc/source/core/tool/rangelst.cxx +++ b/sc/source/core/tool/rangelst.cxx @@ -41,7 +41,7 @@ template<typename T> class FindEnclosingRange : public ::std::unary_function<ScRange*, bool> { public: - FindEnclosingRange(const T& rTest) : mrTest(rTest) {} + explicit FindEnclosingRange(const T& rTest) : mrTest(rTest) {} FindEnclosingRange(const FindEnclosingRange& r) : mrTest(r.mrTest) {} bool operator() (const ScRange* pRange) const { @@ -69,7 +69,7 @@ template<typename T> class FindIntersectingRange : public ::std::unary_function<ScRange*, bool> { public: - FindIntersectingRange(const T& rTest) : mrTest(rTest) {} + explicit FindIntersectingRange(const T& rTest) : mrTest(rTest) {} FindIntersectingRange(const FindIntersectingRange& r) : mrTest(r.mrTest) {} bool operator() (const ScRange* pRange) const { @@ -82,7 +82,7 @@ private: class AppendToList : public ::std::unary_function<const ScRange*, void> { public: - AppendToList(vector<ScRange*>& rRanges) : mrRanges(rRanges) {} + explicit AppendToList(vector<ScRange*>& rRanges) : mrRanges(rRanges) {} AppendToList(const AppendToList& r) : mrRanges(r.mrRanges) {} void operator() (const ScRange* p) { diff --git a/sc/source/core/tool/rangenam.cxx b/sc/source/core/tool/rangenam.cxx index 2e16a4c4a228..faf482d71fcc 100644 --- a/sc/source/core/tool/rangenam.cxx +++ b/sc/source/core/tool/rangenam.cxx @@ -666,7 +666,7 @@ class MatchByRange : public unary_function<ScRangeData, bool> { const ScRange& mrRange; public: - MatchByRange(const ScRange& rRange) : mrRange(rRange) {} + explicit MatchByRange(const ScRange& rRange) : mrRange(rRange) {} bool operator() ( boost::ptr_container_detail::ref_pair<OUString, const ScRangeData* const> const& r) const { return r.second->IsRangeAtBlock(mrRange); diff --git a/sc/source/core/tool/scmatrix.cxx b/sc/source/core/tool/scmatrix.cxx index b3f5f84adc92..16dd4ee71576 100644 --- a/sc/source/core/tool/scmatrix.cxx +++ b/sc/source/core/tool/scmatrix.cxx @@ -1166,7 +1166,7 @@ class CountElements : std::unary_function<MatrixImplType::element_block_node_typ size_t mnCount; bool mbCountString; public: - CountElements(bool bCountString) : mnCount(0), mbCountString(bCountString) {} + explicit CountElements(bool bCountString) : mnCount(0), mbCountString(bCountString) {} size_t getCount() const { return mnCount; } diff --git a/sc/source/filter/excel/xistyle.cxx b/sc/source/filter/excel/xistyle.cxx index 8ffc79eee57d..c95245ed4daa 100644 --- a/sc/source/filter/excel/xistyle.cxx +++ b/sc/source/filter/excel/xistyle.cxx @@ -74,7 +74,7 @@ typedef ::std::vector< ColorData > ColorDataVec; class PaletteIndex : public XIndexAccess_BASE { public: - PaletteIndex( const ColorDataVec& rColorDataTable ) : maColorData( rColorDataTable ) {} + explicit PaletteIndex( const ColorDataVec& rColorDataTable ) : maColorData( rColorDataTable ) {} // Methods XIndexAccess virtual ::sal_Int32 SAL_CALL getCount() throw (uno::RuntimeException, std::exception) override diff --git a/sc/source/filter/excel/xltoolbar.hxx b/sc/source/filter/excel/xltoolbar.hxx index bd04117d1d36..03dfaceaff37 100644 --- a/sc/source/filter/excel/xltoolbar.hxx +++ b/sc/source/filter/excel/xltoolbar.hxx @@ -54,7 +54,7 @@ class ScCTB : public TBBase sal_uInt32 ectbid; std::vector< ScTBC > rTBC; public: - ScCTB(sal_uInt16); + explicit ScCTB(sal_uInt16); virtual ~ScCTB(){} #if OSL_DEBUG_LEVEL > 1 virtual void Print( FILE* ) override; diff --git a/sc/source/filter/html/htmlpars.cxx b/sc/source/filter/html/htmlpars.cxx index 220ca5074b45..b7b01db301ab 100644 --- a/sc/source/filter/html/htmlpars.cxx +++ b/sc/source/filter/html/htmlpars.cxx @@ -3112,7 +3112,7 @@ class CSSHandler ScHTMLStyles& mrStyles; public: - CSSHandler(ScHTMLStyles& rStyles) : mrStyles(rStyles) {} + explicit CSSHandler(ScHTMLStyles& rStyles) : mrStyles(rStyles) {} static void at_rule_name(const char* /*p*/, size_t /*n*/) { diff --git a/sc/source/filter/oox/formulabuffer.cxx b/sc/source/filter/oox/formulabuffer.cxx index b1bd17417dc7..58507f8fd2d8 100644 --- a/sc/source/filter/oox/formulabuffer.cxx +++ b/sc/source/filter/oox/formulabuffer.cxx @@ -59,7 +59,7 @@ public: Item() : mnRow(-1), mpCell(NULL) {} }; - CachedTokenArray( ScDocument& rDoc ) : + explicit CachedTokenArray( ScDocument& rDoc ) : maCxt(&rDoc, formula::FormulaGrammar::GRAM_OOXML) {} ~CachedTokenArray() diff --git a/sc/source/filter/oox/revisionfragment.cxx b/sc/source/filter/oox/revisionfragment.cxx index 1a00c6f56065..08d257907bb9 100644 --- a/sc/source/filter/oox/revisionfragment.cxx +++ b/sc/source/filter/oox/revisionfragment.cxx @@ -325,7 +325,7 @@ struct RevisionLogFragment::Impl bool mbEndOfList; - Impl( ScChangeTrack& rChangeTrack ) : + explicit Impl( ScChangeTrack& rChangeTrack ) : mrChangeTrack(rChangeTrack), mnRevIndex(-1), mnSheetIndex(-1), diff --git a/sc/source/filter/oox/workbookfragment.cxx b/sc/source/filter/oox/workbookfragment.cxx index abd63b07d8d3..fbddd7433346 100644 --- a/sc/source/filter/oox/workbookfragment.cxx +++ b/sc/source/filter/oox/workbookfragment.cxx @@ -262,7 +262,7 @@ class ProgressBarTimer : Timer double mfPosition; ISegmentProgressBarRef mxWrapped; public: - ProgressWrapper(const ISegmentProgressBarRef &xRef) + explicit ProgressWrapper(const ISegmentProgressBarRef &xRef) : mfPosition(0.0) , mxWrapped(xRef) { 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()); diff --git a/sc/source/filter/xcl97/XclExpChangeTrack.cxx b/sc/source/filter/xcl97/XclExpChangeTrack.cxx index 2c4bb45cac39..6ba163c2169c 100644 --- a/sc/source/filter/xcl97/XclExpChangeTrack.cxx +++ b/sc/source/filter/xcl97/XclExpChangeTrack.cxx @@ -1398,7 +1398,7 @@ class EndXmlElement : public ExcXmlRecord { sal_Int32 mnElement; public: - EndXmlElement( sal_Int32 nElement ) : mnElement( nElement) {} + explicit EndXmlElement( sal_Int32 nElement ) : mnElement( nElement) {} virtual void SaveXml( XclExpXmlStream& rStrm ) override; }; diff --git a/sc/source/filter/xcl97/xcl97rec.cxx b/sc/source/filter/xcl97/xcl97rec.cxx index 51c72435b45c..31acde1a86dd 100644 --- a/sc/source/filter/xcl97/xcl97rec.cxx +++ b/sc/source/filter/xcl97/xcl97rec.cxx @@ -1131,8 +1131,8 @@ bool transformURL(const OUString& rOldURL, OUString& rNewURL, ScDocument* pDoc) class ScURLTransformer : public oox::drawingml::URLTransformer { public: - ScURLTransformer(ScDocument& rDoc): - mrDoc(rDoc) + explicit ScURLTransformer(ScDocument& rDoc) + : mrDoc(rDoc) { } diff --git a/sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx b/sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx index 75c9075facc3..e0f172f3d2a1 100644 --- a/sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx +++ b/sc/source/filter/xml/XMLChangeTrackingExportHelper.hxx @@ -78,7 +78,7 @@ class ScChangeTrackingExportHelper void CollectActionAutoStyles(ScChangeAction* pAction); void WorkWithChangeAction(ScChangeAction* pAction); public: - ScChangeTrackingExportHelper(ScXMLExport& rExport); + explicit ScChangeTrackingExportHelper(ScXMLExport& rExport); ~ScChangeTrackingExportHelper(); void CollectAutoStyles(); diff --git a/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx b/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx index 95cd28a3ab19..bab373b1d4ad 100644 --- a/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx +++ b/sc/source/filter/xml/XMLChangeTrackingImportHelper.hxx @@ -124,13 +124,13 @@ struct ScMyBaseAction ScChangeActionType nActionType; ScChangeActionState nActionState; - ScMyBaseAction(const ScChangeActionType nActionType); + explicit ScMyBaseAction(const ScChangeActionType nActionType); virtual ~ScMyBaseAction(); }; struct ScMyInsAction : public ScMyBaseAction { - ScMyInsAction(const ScChangeActionType nActionType); + explicit ScMyInsAction(const ScChangeActionType nActionType); virtual ~ScMyInsAction(); }; @@ -141,7 +141,7 @@ struct ScMyDelAction : public ScMyBaseAction ScMyMoveCutOffs aMoveCutOffs; sal_Int32 nD; - ScMyDelAction(const ScChangeActionType nActionType); + explicit ScMyDelAction(const ScChangeActionType nActionType); virtual ~ScMyDelAction(); }; diff --git a/sc/source/filter/xml/XMLCodeNameProvider.hxx b/sc/source/filter/xml/XMLCodeNameProvider.hxx index 3cd6459cf152..b135ac7890c1 100644 --- a/sc/source/filter/xml/XMLCodeNameProvider.hxx +++ b/sc/source/filter/xml/XMLCodeNameProvider.hxx @@ -35,7 +35,7 @@ class XMLCodeNameProvider : public ::cppu::WeakImplHelper< css::container::XName OUString& rCodeName ); public: - XMLCodeNameProvider( ScDocument* pDoc ); + explicit XMLCodeNameProvider(ScDocument* pDoc); virtual ~XMLCodeNameProvider(); virtual sal_Bool SAL_CALL hasByName( const OUString& aName ) diff --git a/sc/source/filter/xml/XMLExportDDELinks.hxx b/sc/source/filter/xml/XMLExportDDELinks.hxx index cf1cb4083ad4..2360ef5a136c 100644 --- a/sc/source/filter/xml/XMLExportDDELinks.hxx +++ b/sc/source/filter/xml/XMLExportDDELinks.hxx @@ -32,7 +32,7 @@ class ScXMLExportDDELinks void WriteCell(const ScMatrixValue& aVal, sal_Int32 nRepeat); void WriteTable(const sal_Int32 nPos); public: - ScXMLExportDDELinks(ScXMLExport& rExport); + explicit ScXMLExportDDELinks(ScXMLExport& rExport); ~ScXMLExportDDELinks(); void WriteDDELinks(css::uno::Reference < css::sheet::XSpreadsheetDocument >& xSpreadDoc); }; diff --git a/sc/source/filter/xml/XMLExportDataPilot.hxx b/sc/source/filter/xml/XMLExportDataPilot.hxx index ab93df6fcca1..bf3bf3adca21 100644 --- a/sc/source/filter/xml/XMLExportDataPilot.hxx +++ b/sc/source/filter/xml/XMLExportDataPilot.hxx @@ -63,7 +63,7 @@ class ScXMLExportDataPilot void WriteGrandTotal(::xmloff::token::XMLTokenEnum eOrient, bool bVisible, const OUString* pGrandTotal); public: - ScXMLExportDataPilot(ScXMLExport& rExport); + explicit ScXMLExportDataPilot(ScXMLExport& rExport); ~ScXMLExportDataPilot(); void WriteDataPilots(const css::uno::Reference <css::sheet::XSpreadsheetDocument>& xSpreaDoc); }; diff --git a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx index ab82d5f452f1..a54365712e3f 100644 --- a/sc/source/filter/xml/XMLExportDatabaseRanges.cxx +++ b/sc/source/filter/xml/XMLExportDatabaseRanges.cxx @@ -427,7 +427,7 @@ private: { ScXMLExport& mrExport; public: - WriteSetItem(ScXMLExport& r) : mrExport(r) {} + explicit WriteSetItem(ScXMLExport& r) : mrExport(r) {} void operator() (const ScQueryEntry::Item& rItem) const { mrExport.AddAttribute(XML_NAMESPACE_TABLE, XML_VALUE, rItem.maString.getString()); diff --git a/sc/source/filter/xml/XMLExportDatabaseRanges.hxx b/sc/source/filter/xml/XMLExportDatabaseRanges.hxx index ba6fd5b6b1fd..134bbe3be0db 100644 --- a/sc/source/filter/xml/XMLExportDatabaseRanges.hxx +++ b/sc/source/filter/xml/XMLExportDatabaseRanges.hxx @@ -31,7 +31,7 @@ class ScXMLExportDatabaseRanges ScDocument* pDoc; public: - ScXMLExportDatabaseRanges(ScXMLExport& rExport); + explicit ScXMLExportDatabaseRanges(ScXMLExport& rExport); ~ScXMLExportDatabaseRanges(); ScMyEmptyDatabaseRangesContainer GetEmptyDatabaseRanges(); void WriteDatabaseRanges(); diff --git a/sc/source/filter/xml/XMLExportIterator.hxx b/sc/source/filter/xml/XMLExportIterator.hxx index 31a232a76235..1036136bda03 100644 --- a/sc/source/filter/xml/XMLExportIterator.hxx +++ b/sc/source/filter/xml/XMLExportIterator.hxx @@ -187,7 +187,7 @@ public: struct ScMyCellRangeAddress : css::table::CellRangeAddress { - ScMyCellRangeAddress(const css::table::CellRangeAddress& rRange); + explicit ScMyCellRangeAddress(const css::table::CellRangeAddress& rRange); bool operator<(const ScMyCellRangeAddress& rCellRangeAddress ) const; }; @@ -341,7 +341,7 @@ class ScMyNotEmptyCellsIterator : boost::noncopyable void HasAnnotation( ScMyCell& aCell ); public: - ScMyNotEmptyCellsIterator(ScXMLExport& rExport); + explicit ScMyNotEmptyCellsIterator(ScXMLExport& rExport); ~ScMyNotEmptyCellsIterator(); void Clear(); diff --git a/sc/source/filter/xml/XMLExportSharedData.hxx b/sc/source/filter/xml/XMLExportSharedData.hxx index 02dd6675d53b..645d22489d5f 100644 --- a/sc/source/filter/xml/XMLExportSharedData.hxx +++ b/sc/source/filter/xml/XMLExportSharedData.hxx @@ -54,7 +54,7 @@ class ScMySharedData ScMyNoteShapesContainer* pNoteShapes; sal_Int32 nTableCount; public: - ScMySharedData(const sal_Int32 nTableCount); + explicit ScMySharedData(const sal_Int32 nTableCount); ~ScMySharedData(); void SetLastColumn(const sal_Int32 nTable, const sal_Int32 nCol); diff --git a/sc/source/filter/xml/XMLStylesExportHelper.hxx b/sc/source/filter/xml/XMLStylesExportHelper.hxx index 12420877d49a..86825c320ad8 100644 --- a/sc/source/filter/xml/XMLStylesExportHelper.hxx +++ b/sc/source/filter/xml/XMLStylesExportHelper.hxx @@ -152,7 +152,7 @@ class ScRowFormatRanges public: ScRowFormatRanges(); - ScRowFormatRanges(const ScRowFormatRanges* pRanges); + explicit ScRowFormatRanges(const ScRowFormatRanges* pRanges); ~ScRowFormatRanges(); void SetColDefaults(const ScMyDefaultStyleList* pDefaults) { pColDefaults = pDefaults; } diff --git a/sc/source/filter/xml/XMLStylesImportHelper.hxx b/sc/source/filter/xml/XMLStylesImportHelper.hxx index 8d701654d0ff..2ad497b959fd 100644 --- a/sc/source/filter/xml/XMLStylesImportHelper.hxx +++ b/sc/source/filter/xml/XMLStylesImportHelper.hxx @@ -37,7 +37,7 @@ struct ScMyStyleNumberFormat sal_Int32 nNumberFormat; ScMyStyleNumberFormat() : nNumberFormat(-1) {} - ScMyStyleNumberFormat(const OUString& rStyleName) : + explicit ScMyStyleNumberFormat(const OUString& rStyleName) : sStyleName(rStyleName), nNumberFormat(-1) {} ScMyStyleNumberFormat(const OUString& rStyleName, const sal_Int32 nFormat) : sStyleName(rStyleName), nNumberFormat(nFormat) {} @@ -153,7 +153,7 @@ class ScMyStylesImportHelper (!pSecond && pFirst && pFirst->isEmpty())); } public: - ScMyStylesImportHelper(ScXMLImport& rImport); + explicit ScMyStylesImportHelper(ScXMLImport& rImport); ~ScMyStylesImportHelper(); void AddColumnStyle(const OUString& rStyleName, const sal_Int32 nColumn, const sal_Int32 nRepeat); void SetRowStyle(const OUString& rStyleName); |