diff options
Diffstat (limited to 'sc/source')
24 files changed, 85 insertions, 74 deletions
diff --git a/sc/source/core/data/celltextattr.cxx b/sc/source/core/data/celltextattr.cxx index 5d792442b8af..09bfb0829a67 100644 --- a/sc/source/core/data/celltextattr.cxx +++ b/sc/source/core/data/celltextattr.cxx @@ -16,10 +16,6 @@ CellTextAttr::CellTextAttr() : mnTextWidth(TEXTWIDTH_DIRTY), mnScriptType(SvtScriptType::UNKNOWN) {} -CellTextAttr::CellTextAttr(const CellTextAttr& r) : - mnTextWidth(r.mnTextWidth), - mnScriptType(r.mnScriptType) {} - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx index ec19876bcd65..5b24a30d08b0 100644 --- a/sc/source/core/data/column.cxx +++ b/sc/source/core/data/column.cxx @@ -2027,6 +2027,12 @@ namespace { class SharedTopFormulaCellPicker { public: + SharedTopFormulaCellPicker() = default; + SharedTopFormulaCellPicker(SharedTopFormulaCellPicker const &) = default; + SharedTopFormulaCellPicker(SharedTopFormulaCellPicker &&) = default; + SharedTopFormulaCellPicker & operator =(SharedTopFormulaCellPicker const &) = default; + SharedTopFormulaCellPicker & operator =(SharedTopFormulaCellPicker &&) = default; + virtual ~SharedTopFormulaCellPicker() {} void operator() ( sc::CellStoreType::value_type& node ) diff --git a/sc/source/core/data/dpdimsave.cxx b/sc/source/core/data/dpdimsave.cxx index 7b5f315ba18e..937d62c5d9f0 100644 --- a/sc/source/core/data/dpdimsave.cxx +++ b/sc/source/core/data/dpdimsave.cxx @@ -145,10 +145,6 @@ ScDPSaveGroupDimension::ScDPSaveGroupDimension( const OUString& rSource, const O { } -ScDPSaveGroupDimension::~ScDPSaveGroupDimension() -{ -} - void ScDPSaveGroupDimension::SetDateInfo( const ScDPNumGroupInfo& rInfo, sal_Int32 nPart ) { aDateInfo = rInfo; @@ -433,10 +429,6 @@ ScDPSaveNumGroupDimension::ScDPSaveNumGroupDimension( const OUString& rName, con { } -ScDPSaveNumGroupDimension::~ScDPSaveNumGroupDimension() -{ -} - void ScDPSaveNumGroupDimension::AddToData( ScDPGroupTableData& rData ) const { long nSource = rData.GetDimensionIndex( aDimensionName ); @@ -589,10 +581,6 @@ ScDPDimensionSaveData::ScDPDimensionSaveData() { } -ScDPDimensionSaveData::~ScDPDimensionSaveData() -{ -} - bool ScDPDimensionSaveData::operator==( const ScDPDimensionSaveData& ) const { return false; diff --git a/sc/source/core/data/dpnumgroupinfo.cxx b/sc/source/core/data/dpnumgroupinfo.cxx index 368ed6bf98f4..f57822e163bf 100644 --- a/sc/source/core/data/dpnumgroupinfo.cxx +++ b/sc/source/core/data/dpnumgroupinfo.cxx @@ -17,15 +17,6 @@ ScDPNumGroupInfo::ScDPNumGroupInfo() : mbIntegerOnly(true), mfStart(0.0), mfEnd(0.0), mfStep(0.0) {} -ScDPNumGroupInfo::ScDPNumGroupInfo(const ScDPNumGroupInfo& r) : - mbEnable(r.mbEnable), - mbDateValues(r.mbDateValues), - mbAutoStart(r.mbAutoStart), - mbAutoEnd(r.mbAutoEnd), - mbIntegerOnly(r.mbIntegerOnly), - mfStart(r.mfStart), - mfEnd(r.mfEnd), mfStep(r.mfStep) {} - #if DUMP_PIVOT_TABLE void ScDPNumGroupInfo::Dump() const diff --git a/sc/source/core/data/postit.cxx b/sc/source/core/data/postit.cxx index ece95a672ba7..804387cf1467 100644 --- a/sc/source/core/data/postit.cxx +++ b/sc/source/core/data/postit.cxx @@ -500,10 +500,6 @@ ScNoteData::ScNoteData( bool bShown ) : { } -ScNoteData::~ScNoteData() -{ -} - sal_uInt32 ScPostIt::mnLastPostItId = 1; ScPostIt::ScPostIt( ScDocument& rDoc, const ScAddress& rPos, sal_uInt32 nPostItId ) : diff --git a/sc/source/core/data/refupdatecontext.cxx b/sc/source/core/data/refupdatecontext.cxx index 6f7552254380..d4cce81dc680 100644 --- a/sc/source/core/data/refupdatecontext.cxx +++ b/sc/source/core/data/refupdatecontext.cxx @@ -77,10 +77,6 @@ bool RefUpdateContext::isDeleted() const } RefUpdateResult::RefUpdateResult() : mbValueChanged(false), mbReferenceModified(false), mbNameModified(false) {} -RefUpdateResult::RefUpdateResult(const RefUpdateResult& r) : - mbValueChanged(r.mbValueChanged), - mbReferenceModified(r.mbReferenceModified), - mbNameModified(r.mbNameModified) {} RefUpdateInsertTabContext::RefUpdateInsertTabContext(ScDocument& rDoc, SCTAB nInsertPos, SCTAB nSheets) : mrDoc(rDoc), mnInsertPos(nInsertPos), mnSheets(nSheets) {} diff --git a/sc/source/core/tool/printopt.cxx b/sc/source/core/tool/printopt.cxx index 07cfd71b6d81..5d0cb087ffcb 100644 --- a/sc/source/core/tool/printopt.cxx +++ b/sc/source/core/tool/printopt.cxx @@ -34,10 +34,6 @@ ScPrintOptions::ScPrintOptions() SetDefaults(); } -ScPrintOptions::~ScPrintOptions() -{ -} - void ScPrintOptions::SetDefaults() { bSkipEmpty = true; diff --git a/sc/source/core/tool/viewopti.cxx b/sc/source/core/tool/viewopti.cxx index 909dd81db896..81f83286f997 100644 --- a/sc/source/core/tool/viewopti.cxx +++ b/sc/source/core/tool/viewopti.cxx @@ -61,22 +61,6 @@ void ScGridOptions::SetDefaults() nFldDivisionY = 1; } -ScGridOptions& ScGridOptions::operator=( const ScGridOptions& rCpy ) -{ - nFldDrawX = rCpy.nFldDrawX; // UINT32 - nFldDivisionX = rCpy.nFldDivisionX; - nFldDrawY = rCpy.nFldDrawY; - nFldDivisionY = rCpy.nFldDivisionY; - nFldSnapX = rCpy.nFldSnapX; - nFldSnapY = rCpy.nFldSnapY; - bUseGridsnap = rCpy.bUseGridsnap; // BitBool - bSynchronize = rCpy.bSynchronize; - bGridVisible = rCpy.bGridVisible; - bEqualGrid = rCpy.bEqualGrid; - - return *this; -} - bool ScGridOptions::operator==( const ScGridOptions& rCpy ) const { return ( nFldDrawX == rCpy.nFldDrawX diff --git a/sc/source/filter/inc/fapihelper.hxx b/sc/source/filter/inc/fapihelper.hxx index 33631e8a0f75..c4d14a5b9aa2 100644 --- a/sc/source/filter/inc/fapihelper.hxx +++ b/sc/source/filter/inc/fapihelper.hxx @@ -112,6 +112,11 @@ public: explicit ScfPropertySet( const css::uno::Reference< InterfaceType >& xInterface ) { Set( xInterface ); } ~ScfPropertySet(); + //TOOD: + ScfPropertySet(ScfPropertySet const &) = default; + ScfPropertySet(ScfPropertySet &&) = default; + ScfPropertySet & operator =(ScfPropertySet const &) = default; + ScfPropertySet & operator =(ScfPropertySet &&) = default; /** Sets the passed UNO property set and releases the old UNO property set. */ void Set( css::uno::Reference< css::beans::XPropertySet > const & xPropSet ); diff --git a/sc/source/filter/inc/formulabase.hxx b/sc/source/filter/inc/formulabase.hxx index d207559a2d66..3f359c07e1bf 100644 --- a/sc/source/filter/inc/formulabase.hxx +++ b/sc/source/filter/inc/formulabase.hxx @@ -537,6 +537,11 @@ public: explicit FunctionProvider(bool bImportFilter); virtual ~FunctionProvider(); + FunctionProvider(FunctionProvider const &) = default; + FunctionProvider(FunctionProvider &&) = default; + FunctionProvider & operator =(FunctionProvider const &) = default; + FunctionProvider & operator =(FunctionProvider &&) = default; + /** Returns the function info for an OOXML function name, or 0 on error. */ const FunctionInfo* getFuncInfoFromOoxFuncName( const OUString& rFuncName ) const; @@ -574,6 +579,11 @@ public: bool bImportFilter); virtual ~OpCodeProvider() override; + OpCodeProvider(OpCodeProvider const &) = default; + OpCodeProvider(OpCodeProvider &&) = default; + OpCodeProvider & operator =(OpCodeProvider const &) = default; + OpCodeProvider & operator =(OpCodeProvider &&) = default; + /** Returns the structure containing all token op-codes for operators and special tokens used by the Calc document and its formula parser. */ const ApiOpCodes& getOpCodes() const; diff --git a/sc/source/filter/inc/workbookhelper.hxx b/sc/source/filter/inc/workbookhelper.hxx index afd36fadd83b..7a9047ae55d5 100644 --- a/sc/source/filter/inc/workbookhelper.hxx +++ b/sc/source/filter/inc/workbookhelper.hxx @@ -104,6 +104,11 @@ public: /*implicit*/ WorkbookHelper( WorkbookGlobals& rBookGlob ) : mrBookGlob( rBookGlob ) {} virtual ~WorkbookHelper(); + WorkbookHelper(WorkbookHelper const &) = default; + WorkbookHelper(WorkbookHelper &&) = default; + WorkbookHelper & operator =(WorkbookHelper const &) = default; + WorkbookHelper & operator =(WorkbookHelper &&) = default; + static WorkbookGlobalsRef constructGlobals( ExcelFilter& rFilter ); // filter ----------------------------------------------------------------- diff --git a/sc/source/filter/inc/xechart.hxx b/sc/source/filter/inc/xechart.hxx index dcdd1e3f3b6d..d9fca5961ea2 100644 --- a/sc/source/filter/inc/xechart.hxx +++ b/sc/source/filter/inc/xechart.hxx @@ -83,6 +83,11 @@ public: explicit XclExpChRoot( const XclExpRoot& rRoot, XclExpChChart& rChartData ); virtual ~XclExpChRoot() override; + XclExpChRoot(XclExpChRoot const &) = default; + XclExpChRoot(XclExpChRoot &&) = default; + XclExpChRoot & operator =(XclExpChRoot const &) = default; + XclExpChRoot & operator =(XclExpChRoot &&) = default; + /** Returns this root instance - for code readability in derived classes. */ const XclExpChRoot& GetChRoot() const { return *this; } /** Returns the API Chart document model. */ diff --git a/sc/source/filter/inc/xerecord.hxx b/sc/source/filter/inc/xerecord.hxx index efa20eb0f402..2985e452ce2e 100644 --- a/sc/source/filter/inc/xerecord.hxx +++ b/sc/source/filter/inc/xerecord.hxx @@ -36,6 +36,12 @@ class XclExpRecordBase { public: + XclExpRecordBase() = default; + XclExpRecordBase(XclExpRecordBase const &) = default; + XclExpRecordBase(XclExpRecordBase &&) = default; + XclExpRecordBase & operator =(XclExpRecordBase const &) = default; + XclExpRecordBase & operator =(XclExpRecordBase &&) = default; + virtual ~XclExpRecordBase(); /** Overwrite this method to do any operation while saving the record. */ @@ -124,6 +130,11 @@ public: virtual ~XclExpRecord() override; + XclExpRecord(XclExpRecord const &) = default; + XclExpRecord(XclExpRecord &&) = default; + XclExpRecord & operator =(XclExpRecord const &) = default; + XclExpRecord & operator =(XclExpRecord &&) = default; + /** Returns the current record ID. */ sal_uInt16 GetRecId() const { return mnRecId; } /** Returns the current record size prediction. */ diff --git a/sc/source/filter/inc/xichart.hxx b/sc/source/filter/inc/xichart.hxx index d1e3f4efcde8..f02ec52ca42b 100644 --- a/sc/source/filter/inc/xichart.hxx +++ b/sc/source/filter/inc/xichart.hxx @@ -86,6 +86,11 @@ public: explicit XclImpChRoot( const XclImpRoot& rRoot, XclImpChChart& rChartData ); virtual ~XclImpChRoot() override; + XclImpChRoot(XclImpChRoot const &) = default; + XclImpChRoot(XclImpChRoot &&) = default; + XclImpChRoot & operator =(XclImpChRoot const &) = default; + XclImpChRoot & operator =(XclImpChRoot &&) = default; + /** Returns this root instance - for code readability in derived classes. */ const XclImpChRoot& GetChRoot() const { return *this; } /** Returns a reference to the parent chart data object. */ @@ -177,6 +182,12 @@ private: class XclImpChGroupBase { public: + XclImpChGroupBase() = default; + XclImpChGroupBase(XclImpChGroupBase const &) = default; + XclImpChGroupBase(XclImpChGroupBase &&) = default; + XclImpChGroupBase & operator =(XclImpChGroupBase const &) = default; + XclImpChGroupBase & operator =(XclImpChGroupBase &&) = default; + virtual ~XclImpChGroupBase(); /** Reads the entire record group. @@ -428,6 +439,12 @@ typedef std::shared_ptr< XclImpChSourceLink > XclImpChSourceLinkRef; class XclImpChFontBase { public: + XclImpChFontBase() = default; + XclImpChFontBase(XclImpChFontBase const &) = default; + XclImpChFontBase(XclImpChFontBase &&) = default; + XclImpChFontBase & operator =(XclImpChFontBase const &) = default; + XclImpChFontBase & operator =(XclImpChFontBase &&) = default; + virtual ~XclImpChFontBase(); /** Derived classes return the leading font index for the text object. */ diff --git a/sc/source/filter/inc/xlpivot.hxx b/sc/source/filter/inc/xlpivot.hxx index 5306bbbf690c..26e5c7869eb2 100644 --- a/sc/source/filter/inc/xlpivot.hxx +++ b/sc/source/filter/inc/xlpivot.hxx @@ -377,6 +377,11 @@ public: explicit XclPCItem(); virtual ~XclPCItem(); + XclPCItem(XclPCItem const &) = default; + XclPCItem(XclPCItem &&) = default; + XclPCItem & operator =(XclPCItem const &) = default; + XclPCItem & operator =(XclPCItem &&) = default; + /** Sets the item to 'empty' type. */ void SetEmpty(); /** Sets the item to 'text' type and adds the passed text. */ diff --git a/sc/source/filter/inc/xlstyle.hxx b/sc/source/filter/inc/xlstyle.hxx index 1ff7b9a8c1f7..f9b6e68a80ad 100644 --- a/sc/source/filter/inc/xlstyle.hxx +++ b/sc/source/filter/inc/xlstyle.hxx @@ -566,6 +566,11 @@ public: explicit XclXFBase( bool bCellXF ); virtual ~XclXFBase(); + XclXFBase(XclXFBase const &) = default; + XclXFBase(XclXFBase &&) = default; + XclXFBase & operator =(XclXFBase const &) = default; + XclXFBase & operator =(XclXFBase &&) = default; + /** Sets all "attribute used" flags to the passed state. */ void SetAllUsedFlags( bool bUsed ); /** Returns true, if any "attribute used" flags are ste in this XF. */ diff --git a/sc/source/filter/xml/XMLExportIterator.cxx b/sc/source/filter/xml/XMLExportIterator.cxx index 1f8cb283f85d..58f1b693a804 100644 --- a/sc/source/filter/xml/XMLExportIterator.cxx +++ b/sc/source/filter/xml/XMLExportIterator.cxx @@ -540,10 +540,6 @@ ScMyCell::ScMyCell() : { } -ScMyCell::~ScMyCell() -{ -} - ScMyNotEmptyCellsIterator::ScMyNotEmptyCellsIterator(ScXMLExport& rTempXMLExport) : pShapes(nullptr), pNoteShapes(nullptr), diff --git a/sc/source/filter/xml/XMLExportIterator.hxx b/sc/source/filter/xml/XMLExportIterator.hxx index 11d88f004f01..2866b09210b7 100644 --- a/sc/source/filter/xml/XMLExportIterator.hxx +++ b/sc/source/filter/xml/XMLExportIterator.hxx @@ -51,6 +51,11 @@ public: ScMyIteratorBase(); virtual ~ScMyIteratorBase(); + ScMyIteratorBase(ScMyIteratorBase const &) = default; + ScMyIteratorBase(ScMyIteratorBase &&) = default; + ScMyIteratorBase & operator =(ScMyIteratorBase const &) = default; + ScMyIteratorBase & operator =(ScMyIteratorBase &&) = default; + virtual void SetCellData( ScMyCell& rMyCell ) = 0; virtual void Sort() = 0; @@ -195,6 +200,12 @@ protected: public: ScMyEmptyDatabaseRangesContainer(); virtual ~ScMyEmptyDatabaseRangesContainer() override; + + ScMyEmptyDatabaseRangesContainer(ScMyEmptyDatabaseRangesContainer const &) = default; + ScMyEmptyDatabaseRangesContainer(ScMyEmptyDatabaseRangesContainer &&) = default; + ScMyEmptyDatabaseRangesContainer & operator =(ScMyEmptyDatabaseRangesContainer const &) = default; + ScMyEmptyDatabaseRangesContainer & operator =(ScMyEmptyDatabaseRangesContainer &&) = default; + void AddNewEmptyDatabaseRange(const css::table::CellRangeAddress& aCellRangeAddress); using ScMyIteratorBase::UpdateAddress; @@ -305,7 +316,6 @@ struct ScMyCell bool bHasAnnotation; ScMyCell(); - ~ScMyCell(); }; class ScMyNotEmptyCellsIterator diff --git a/sc/source/ui/dataprovider/dataprovider.cxx b/sc/source/ui/dataprovider/dataprovider.cxx index 01aa0c80331a..f36f80006303 100644 --- a/sc/source/ui/dataprovider/dataprovider.cxx +++ b/sc/source/ui/dataprovider/dataprovider.cxx @@ -66,10 +66,6 @@ ExternalDataSource::ExternalDataSource(const OUString& rURL, { } -ExternalDataSource::~ExternalDataSource() -{ -} - void ExternalDataSource::setID(const OUString& rID) { maID = rID; diff --git a/sc/source/ui/dbgui/asciiopt.cxx b/sc/source/ui/dbgui/asciiopt.cxx index 94bcb4494544..f510577c2712 100644 --- a/sc/source/ui/dbgui/asciiopt.cxx +++ b/sc/source/ui/dbgui/asciiopt.cxx @@ -43,10 +43,6 @@ ScAsciiOptions::ScAsciiOptions() : { } -ScAsciiOptions::~ScAsciiOptions() -{ -} - void ScAsciiOptions::SetColumnInfo( const ScCsvExpDataVec& rDataVec ) { sal_uInt16 nInfoCount = static_cast< sal_uInt16 >( rDataVec.size() ); diff --git a/sc/source/ui/inc/asciiopt.hxx b/sc/source/ui/inc/asciiopt.hxx index c91ac25a5be5..3c73ee25327b 100644 --- a/sc/source/ui/inc/asciiopt.hxx +++ b/sc/source/ui/inc/asciiopt.hxx @@ -47,7 +47,6 @@ private: public: ScAsciiOptions(); - ~ScAsciiOptions(); static const sal_Unicode cDefaultTextSep = '"'; diff --git a/sc/source/ui/inc/condformatdlgitem.hxx b/sc/source/ui/inc/condformatdlgitem.hxx index 0daed60f3f32..55f2e1a5ade2 100644 --- a/sc/source/ui/inc/condformatdlgitem.hxx +++ b/sc/source/ui/inc/condformatdlgitem.hxx @@ -42,6 +42,11 @@ public: virtual ~ScCondFormatDlgItem() override; + ScCondFormatDlgItem(ScCondFormatDlgItem const &) = default; + ScCondFormatDlgItem(ScCondFormatDlgItem &&) = default; + ScCondFormatDlgItem & operator =(ScCondFormatDlgItem const &) = default; + ScCondFormatDlgItem & operator =(ScCondFormatDlgItem &&) = default; + virtual bool operator==(const SfxPoolItem&) const override; virtual SfxPoolItem* Clone(SfxItemPool* pPool = nullptr) const override; diff --git a/sc/source/ui/inc/viewdata.hxx b/sc/source/ui/inc/viewdata.hxx index d0d9e84ac16b..0027a73abae2 100644 --- a/sc/source/ui/inc/viewdata.hxx +++ b/sc/source/ui/inc/viewdata.hxx @@ -265,9 +265,6 @@ private: anywhere. */ SAL_WARN_UNUSED_RESULT ScSplitPos SanitizeWhichActive() const; - -public: - ~ScViewDataTable(); }; class SC_DLLPUBLIC ScViewData diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index ab9303b23d29..4f0ccf24f0b3 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -493,10 +493,6 @@ ScViewDataTable::ScViewDataTable() : nPixPosY[0]=nPixPosY[1]=0; } -ScViewDataTable::~ScViewDataTable() -{ -} - void ScViewDataTable::WriteUserDataSequence(uno::Sequence <beans::PropertyValue>& rSettings, const ScViewData& rViewData) const { rSettings.realloc(SC_TABLE_VIEWSETTINGS_COUNT); |