diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-10-02 17:28:15 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-10-02 21:54:00 +0200 |
commit | 3db830d354de80b319fb818a0373365a1e647264 (patch) | |
tree | 7b8abc09ad3d5f44c05b440c12ff4238c7e86f15 /sc/inc | |
parent | 22c3b4077f5f113f8208bb03b853eb3befafff51 (diff) |
Silence new Clang trunk -Wdefaulted-function-deleted
This mostly affects explicitly defaulted functions that had recently been user-
declared to silence new GCC trunk -Wdeprecated-copy. It is not entirely clear
to me what the best approach is overall, see my mail
<http://lists.llvm.org/pipermail/cfe-commits/Week-of-Mon-20181001/245321.html>
"Re: r343285 - [cxx2a] P0641R2: (Some) type mismatches on defaulted functions
only", but lets just explicitly delete those functions for now.
Change-Id: If8c72f612f67a8feb8b03c2fb988c807e704ef03
Reviewed-on: https://gerrit.libreoffice.org/61259
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/inc')
-rw-r--r-- | sc/inc/attrib.hxx | 12 | ||||
-rw-r--r-- | sc/inc/defaultsoptions.hxx | 4 | ||||
-rw-r--r-- | sc/inc/docoptio.hxx | 4 | ||||
-rw-r--r-- | sc/inc/editdataarray.hxx | 2 | ||||
-rw-r--r-- | sc/inc/formulaopt.hxx | 4 | ||||
-rw-r--r-- | sc/inc/printopt.hxx | 4 | ||||
-rw-r--r-- | sc/inc/refhint.hxx | 8 | ||||
-rw-r--r-- | sc/inc/textuno.hxx | 12 | ||||
-rw-r--r-- | sc/inc/token.hxx | 12 | ||||
-rw-r--r-- | sc/inc/userdat.hxx | 4 | ||||
-rw-r--r-- | sc/inc/viewopti.hxx | 4 |
11 files changed, 35 insertions, 35 deletions
diff --git a/sc/inc/attrib.hxx b/sc/inc/attrib.hxx index b881a54a96d5..08363b2ac681 100644 --- a/sc/inc/attrib.hxx +++ b/sc/inc/attrib.hxx @@ -89,8 +89,8 @@ public: ScMergeFlagAttr(ScMergeFlagAttr const &) = default; ScMergeFlagAttr(ScMergeFlagAttr &&) = default; - ScMergeFlagAttr & operator =(ScMergeFlagAttr const &) = default; - ScMergeFlagAttr & operator =(ScMergeFlagAttr &&) = default; + ScMergeFlagAttr & operator =(ScMergeFlagAttr const &) = delete; // due to SfxInt16Item + ScMergeFlagAttr & operator =(ScMergeFlagAttr &&) = delete; // due to SfxInt16Item SfxPoolItem * Clone(SfxItemPool * pPool = nullptr) const override; @@ -201,8 +201,8 @@ public: ScViewObjectModeItem(ScViewObjectModeItem const &) = default; ScViewObjectModeItem(ScViewObjectModeItem &&) = default; - ScViewObjectModeItem & operator =(ScViewObjectModeItem const &) = default; - ScViewObjectModeItem & operator =(ScViewObjectModeItem &&) = default; + ScViewObjectModeItem & operator =(ScViewObjectModeItem const &) = delete; // due to SfxEnumItem<ScVObjMode> + ScViewObjectModeItem & operator =(ScViewObjectModeItem &&) = delete; // due to SfxEnumItem<ScVObjMode> virtual sal_uInt16 GetValueCount() const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; @@ -246,8 +246,8 @@ public: ScPageScaleToItem(ScPageScaleToItem const &) = default; ScPageScaleToItem(ScPageScaleToItem &&) = default; - ScPageScaleToItem & operator =(ScPageScaleToItem const &) = default; - ScPageScaleToItem & operator =(ScPageScaleToItem &&) = default; + ScPageScaleToItem & operator =(ScPageScaleToItem const &) = delete; // due to SfxPoolItem + ScPageScaleToItem & operator =(ScPageScaleToItem &&) = delete; // due to SfxPoolItem virtual ScPageScaleToItem* Clone( SfxItemPool* = nullptr ) const override; diff --git a/sc/inc/defaultsoptions.hxx b/sc/inc/defaultsoptions.hxx index 76e187797f48..caafc6dfe152 100644 --- a/sc/inc/defaultsoptions.hxx +++ b/sc/inc/defaultsoptions.hxx @@ -45,8 +45,8 @@ public: ScTpDefaultsItem(ScTpDefaultsItem const &) = default; ScTpDefaultsItem(ScTpDefaultsItem &&) = default; - ScTpDefaultsItem & operator =(ScTpDefaultsItem const &) = default; - ScTpDefaultsItem & operator =(ScTpDefaultsItem &&) = default; + ScTpDefaultsItem & operator =(ScTpDefaultsItem const &) = delete; // due to SfxPoolItem + ScTpDefaultsItem & operator =(ScTpDefaultsItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/sc/inc/docoptio.hxx b/sc/inc/docoptio.hxx index 32d8d328d523..436c9975ad6d 100644 --- a/sc/inc/docoptio.hxx +++ b/sc/inc/docoptio.hxx @@ -142,8 +142,8 @@ public: ScTpCalcItem(ScTpCalcItem const &) = default; ScTpCalcItem(ScTpCalcItem &&) = default; - ScTpCalcItem & operator =(ScTpCalcItem const &) = default; - ScTpCalcItem & operator =(ScTpCalcItem &&) = default; + ScTpCalcItem & operator =(ScTpCalcItem const &) = delete; // due to SfxPoolItem + ScTpCalcItem & operator =(ScTpCalcItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/sc/inc/editdataarray.hxx b/sc/inc/editdataarray.hxx index 6075b6ef3bca..0300f3f61d81 100644 --- a/sc/inc/editdataarray.hxx +++ b/sc/inc/editdataarray.hxx @@ -37,7 +37,7 @@ public: Item() = delete; explicit Item(SCTAB nTab, SCCOL nCol, SCROW nRow, std::unique_ptr<EditTextObject> pOldData, std::unique_ptr<EditTextObject> pNewData); - Item(Item const &) = default; + Item(Item const &) = delete; // due to mpOldData Item(Item&&) = default; ~Item(); diff --git a/sc/inc/formulaopt.hxx b/sc/inc/formulaopt.hxx index 72aed45577c9..741eb4e98cb6 100644 --- a/sc/inc/formulaopt.hxx +++ b/sc/inc/formulaopt.hxx @@ -83,8 +83,8 @@ public: ScTpFormulaItem(ScTpFormulaItem const &) = default; ScTpFormulaItem(ScTpFormulaItem &&) = default; - ScTpFormulaItem & operator =(ScTpFormulaItem const &) = default; - ScTpFormulaItem & operator =(ScTpFormulaItem &&) = default; + ScTpFormulaItem & operator =(ScTpFormulaItem const &) = delete; // due to SfxPoolItem + ScTpFormulaItem & operator =(ScTpFormulaItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/sc/inc/printopt.hxx b/sc/inc/printopt.hxx index 68c3056f86fe..de53c502c74c 100644 --- a/sc/inc/printopt.hxx +++ b/sc/inc/printopt.hxx @@ -56,8 +56,8 @@ public: ScTpPrintItem(ScTpPrintItem const &) = default; ScTpPrintItem(ScTpPrintItem &&) = default; - ScTpPrintItem & operator =(ScTpPrintItem const &) = default; - ScTpPrintItem & operator =(ScTpPrintItem &&) = default; + ScTpPrintItem & operator =(ScTpPrintItem const &) = delete; // due to SfxPoolItem + ScTpPrintItem & operator =(ScTpPrintItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; diff --git a/sc/inc/refhint.hxx b/sc/inc/refhint.hxx index 4bc7eb468110..cfdcaa6ec40e 100644 --- a/sc/inc/refhint.hxx +++ b/sc/inc/refhint.hxx @@ -84,8 +84,8 @@ public: RefColReorderHint(RefColReorderHint const &) = default; RefColReorderHint(RefColReorderHint &&) = default; - RefColReorderHint & operator =(RefColReorderHint const &) = default; - RefColReorderHint & operator =(RefColReorderHint &&) = default; + RefColReorderHint & operator =(RefColReorderHint const &) = delete; // due to mrColMap + RefColReorderHint & operator =(RefColReorderHint &&) = delete; // due to mrColMap const sc::ColRowReorderMapType& getColMap() const; @@ -107,8 +107,8 @@ public: RefRowReorderHint(RefRowReorderHint const &) = default; RefRowReorderHint(RefRowReorderHint &&) = default; - RefRowReorderHint & operator =(RefRowReorderHint const &) = default; - RefRowReorderHint & operator =(RefRowReorderHint &&) = default; + RefRowReorderHint & operator =(RefRowReorderHint const &) = delete; // due to mrRowMap + RefRowReorderHint & operator =(RefRowReorderHint &&) = delete; // due to mrRowMap const sc::ColRowReorderMapType& getRowMap() const; diff --git a/sc/inc/textuno.hxx b/sc/inc/textuno.hxx index 6a1d1ee946f7..c76e67ed140e 100644 --- a/sc/inc/textuno.hxx +++ b/sc/inc/textuno.hxx @@ -222,8 +222,8 @@ public: ScCellTextCursor(ScCellTextCursor const &) = default; ScCellTextCursor(ScCellTextCursor &&) = default; - ScCellTextCursor & operator =(ScCellTextCursor const &) = default; - ScCellTextCursor & operator =(ScCellTextCursor &&) = default; + ScCellTextCursor & operator =(ScCellTextCursor const &) = delete; // due to SvxUnoTextCursor + ScCellTextCursor & operator =(ScCellTextCursor &&) = delete; // due to SvxUnoTextCursor ScCellObj& GetCellObj() const { return *mxTextObj; } @@ -253,8 +253,8 @@ public: ScHeaderFooterTextCursor(ScHeaderFooterTextCursor const &) = default; ScHeaderFooterTextCursor(ScHeaderFooterTextCursor &&) = default; - ScHeaderFooterTextCursor & operator =(ScHeaderFooterTextCursor const &) = default; - ScHeaderFooterTextCursor & operator =(ScHeaderFooterTextCursor &&) = default; + ScHeaderFooterTextCursor & operator =(ScHeaderFooterTextCursor const &) = delete; // due to SvxUnoTextCursor + ScHeaderFooterTextCursor & operator =(ScHeaderFooterTextCursor &&) = delete; // due to SvxUnoTextCursor // SvxUnoTextCursor methods reimplemented here: virtual css::uno::Reference< css::text::XText > SAL_CALL @@ -283,8 +283,8 @@ public: ScDrawTextCursor(ScDrawTextCursor const &) = default; ScDrawTextCursor(ScDrawTextCursor &&) = default; - ScDrawTextCursor & operator =(ScDrawTextCursor const &) = default; - ScDrawTextCursor & operator =(ScDrawTextCursor &&) = default; + ScDrawTextCursor & operator =(ScDrawTextCursor const &) = delete; // due to SvxUnoTextCursor + ScDrawTextCursor & operator =(ScDrawTextCursor &&) = delete; // due to SvxUnoTextCursor // SvxUnoTextCursor methods reimplemented here: virtual css::uno::Reference< css::text::XText > SAL_CALL diff --git a/sc/inc/token.hxx b/sc/inc/token.hxx index 6ee0607737ab..95fb24e5e2b5 100644 --- a/sc/inc/token.hxx +++ b/sc/inc/token.hxx @@ -143,8 +143,8 @@ public: ScExternalSingleRefToken(ScExternalSingleRefToken const &) = default; ScExternalSingleRefToken(ScExternalSingleRefToken &&) = default; - ScExternalSingleRefToken & operator =(ScExternalSingleRefToken const &) = default; - ScExternalSingleRefToken & operator =(ScExternalSingleRefToken &&) = default; + ScExternalSingleRefToken & operator =(ScExternalSingleRefToken const &) = delete; // due to FormulaToken + ScExternalSingleRefToken & operator =(ScExternalSingleRefToken &&) = delete; // due to FormulaToken virtual sal_uInt16 GetIndex() const override; virtual svl::SharedString GetString() const override; @@ -167,8 +167,8 @@ public: ScExternalDoubleRefToken(ScExternalDoubleRefToken const &) = default; ScExternalDoubleRefToken(ScExternalDoubleRefToken &&) = default; - ScExternalDoubleRefToken & operator =(ScExternalDoubleRefToken const &) = default; - ScExternalDoubleRefToken & operator =(ScExternalDoubleRefToken &&) = default; + ScExternalDoubleRefToken & operator =(ScExternalDoubleRefToken const &) = delete; // due to FormulaToken + ScExternalDoubleRefToken & operator =(ScExternalDoubleRefToken &&) = delete; // due to FormulaToken virtual sal_uInt16 GetIndex() const override; virtual svl::SharedString GetString() const override; @@ -194,8 +194,8 @@ public: ScExternalNameToken(ScExternalNameToken const &) = default; ScExternalNameToken(ScExternalNameToken &&) = default; - ScExternalNameToken & operator =(ScExternalNameToken const &) = default; - ScExternalNameToken & operator =(ScExternalNameToken &&) = default; + ScExternalNameToken & operator =(ScExternalNameToken const &) = delete; // due to FormulaToken + ScExternalNameToken & operator =(ScExternalNameToken &&) = delete; // due to FormulaToken virtual sal_uInt16 GetIndex() const override; virtual svl::SharedString GetString() const override; diff --git a/sc/inc/userdat.hxx b/sc/inc/userdat.hxx index 7e32d3c32ab1..d3d9de0cfcc1 100644 --- a/sc/inc/userdat.hxx +++ b/sc/inc/userdat.hxx @@ -90,8 +90,8 @@ public: ScMacroInfo(ScMacroInfo const &) = default; ScMacroInfo(ScMacroInfo &&) = default; - ScMacroInfo & operator =(ScMacroInfo const &) = default; - ScMacroInfo & operator =(ScMacroInfo &&) = default; + ScMacroInfo & operator =(ScMacroInfo const &) = delete; // due to SdrObjUserData + ScMacroInfo & operator =(ScMacroInfo &&) = delete; // due to SdrObjUserData virtual std::unique_ptr<SdrObjUserData> Clone( SdrObject* pObj ) const override; diff --git a/sc/inc/viewopti.hxx b/sc/inc/viewopti.hxx index b7870ddb646a..463de1c698fe 100644 --- a/sc/inc/viewopti.hxx +++ b/sc/inc/viewopti.hxx @@ -118,8 +118,8 @@ public: ScTpViewItem(ScTpViewItem const &) = default; ScTpViewItem(ScTpViewItem &&) = default; - ScTpViewItem & operator =(ScTpViewItem const &) = default; - ScTpViewItem & operator =(ScTpViewItem &&) = default; + ScTpViewItem & operator =(ScTpViewItem const &) = delete; // due to SfxPoolItem + ScTpViewItem & operator =(ScTpViewItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; |