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 /include/svx | |
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 'include/svx')
-rw-r--r-- | include/svx/grfcrop.hxx | 4 | ||||
-rw-r--r-- | include/svx/sdasitm.hxx | 4 | ||||
-rw-r--r-- | include/svx/sdtaiitm.hxx | 8 | ||||
-rw-r--r-- | include/svx/svdoattr.hxx | 4 | ||||
-rw-r--r-- | include/svx/sxcecitm.hxx | 8 | ||||
-rw-r--r-- | include/svx/sxcllitm.hxx | 8 | ||||
-rw-r--r-- | include/svx/sxmbritm.hxx | 4 | ||||
-rw-r--r-- | include/svx/sxmtfitm.hxx | 12 | ||||
-rw-r--r-- | include/svx/sxmtritm.hxx | 8 |
9 files changed, 30 insertions, 30 deletions
diff --git a/include/svx/grfcrop.hxx b/include/svx/grfcrop.hxx index 73693e65123d..3877f471da17 100644 --- a/include/svx/grfcrop.hxx +++ b/include/svx/grfcrop.hxx @@ -38,8 +38,8 @@ public: SvxGrfCrop(SvxGrfCrop const &) = default; SvxGrfCrop(SvxGrfCrop &&) = default; - SvxGrfCrop & operator =(SvxGrfCrop const &) = default; - SvxGrfCrop & operator =(SvxGrfCrop &&) = default; + SvxGrfCrop & operator =(SvxGrfCrop const &) = delete; // due to SfxPoolItem + SvxGrfCrop & operator =(SvxGrfCrop &&) = delete; // due to SfxPoolItem // "pure virtual methods" from SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; diff --git a/include/svx/sdasitm.hxx b/include/svx/sdasitm.hxx index c0c02897da5c..44bdfbc714d6 100644 --- a/include/svx/sdasitm.hxx +++ b/include/svx/sdasitm.hxx @@ -56,8 +56,8 @@ private: SdrCustomShapeGeometryItem(SdrCustomShapeGeometryItem const &) = default; SdrCustomShapeGeometryItem(SdrCustomShapeGeometryItem &&) = default; - SdrCustomShapeGeometryItem & operator =(SdrCustomShapeGeometryItem const &) = default; - SdrCustomShapeGeometryItem & operator =(SdrCustomShapeGeometryItem &&) = default; + SdrCustomShapeGeometryItem & operator =(SdrCustomShapeGeometryItem const &) = delete; // due to SfxPoolItem + SdrCustomShapeGeometryItem & operator =(SdrCustomShapeGeometryItem &&) = delete; // due to SfxPoolItem virtual bool operator==( const SfxPoolItem& ) const override; virtual bool GetPresentation(SfxItemPresentation ePresentation, diff --git a/include/svx/sdtaiitm.hxx b/include/svx/sdtaiitm.hxx index f49131403096..eabeba9b3215 100644 --- a/include/svx/sdtaiitm.hxx +++ b/include/svx/sdtaiitm.hxx @@ -30,8 +30,8 @@ public: SdrTextAniStartInsideItem(SdrTextAniStartInsideItem const &) = default; SdrTextAniStartInsideItem(SdrTextAniStartInsideItem &&) = default; - SdrTextAniStartInsideItem & operator =(SdrTextAniStartInsideItem const &) = default; - SdrTextAniStartInsideItem & operator =(SdrTextAniStartInsideItem &&) = default; + SdrTextAniStartInsideItem & operator =(SdrTextAniStartInsideItem const &) = delete; // due to SdrYesNoItem + SdrTextAniStartInsideItem & operator =(SdrTextAniStartInsideItem &&) = delete; // due to SdrYesNoItem }; class SVX_DLLPUBLIC SdrTextAniStopInsideItem: public SdrYesNoItem { @@ -42,8 +42,8 @@ public: SdrTextAniStopInsideItem(SdrTextAniStopInsideItem const &) = default; SdrTextAniStopInsideItem(SdrTextAniStopInsideItem &&) = default; - SdrTextAniStopInsideItem & operator =(SdrTextAniStopInsideItem const &) = default; - SdrTextAniStopInsideItem & operator =(SdrTextAniStopInsideItem &&) = default; + SdrTextAniStopInsideItem & operator =(SdrTextAniStopInsideItem const &) = delete; // due to SdrYesNoItem + SdrTextAniStopInsideItem & operator =(SdrTextAniStopInsideItem &&) = delete; // due to SdrYesNoItem }; #endif diff --git a/include/svx/svdoattr.hxx b/include/svx/svdoattr.hxx index 44a31a65542c..29622d0a9e89 100644 --- a/include/svx/svdoattr.hxx +++ b/include/svx/svdoattr.hxx @@ -57,8 +57,8 @@ protected: virtual ~SdrAttrObj() override; public: - SdrAttrObj(SdrAttrObj const &) = default; - SdrAttrObj(SdrAttrObj &&) = default; + SdrAttrObj(SdrAttrObj const &) = delete; // due to SdrObject + SdrAttrObj(SdrAttrObj &&) = delete; // due to SdrObject SdrAttrObj & operator =(SdrAttrObj const &) = default; SdrAttrObj & operator =(SdrAttrObj &&) = default; diff --git a/include/svx/sxcecitm.hxx b/include/svx/sxcecitm.hxx index 53a81f11462f..3f5d980b86af 100644 --- a/include/svx/sxcecitm.hxx +++ b/include/svx/sxcecitm.hxx @@ -54,8 +54,8 @@ public: SdrCaptionEscIsRelItem(SdrCaptionEscIsRelItem const &) = default; SdrCaptionEscIsRelItem(SdrCaptionEscIsRelItem &&) = default; - SdrCaptionEscIsRelItem & operator =(SdrCaptionEscIsRelItem const &) = default; - SdrCaptionEscIsRelItem & operator =(SdrCaptionEscIsRelItem &&) = default; + SdrCaptionEscIsRelItem & operator =(SdrCaptionEscIsRelItem const &) = delete; // due to SdrYesNoItem + SdrCaptionEscIsRelItem & operator =(SdrCaptionEscIsRelItem &&) = delete; // due to SdrYesNoItem }; @@ -73,8 +73,8 @@ public: SdrCaptionEscRelItem(SdrCaptionEscRelItem const &) = default; SdrCaptionEscRelItem(SdrCaptionEscRelItem &&) = default; - SdrCaptionEscRelItem & operator =(SdrCaptionEscRelItem const &) = default; - SdrCaptionEscRelItem & operator =(SdrCaptionEscRelItem &&) = default; + SdrCaptionEscRelItem & operator =(SdrCaptionEscRelItem const &) = delete; // due to SfxInt32Item + SdrCaptionEscRelItem & operator =(SdrCaptionEscRelItem &&) = delete; // due to SfxInt32Item }; diff --git a/include/svx/sxcllitm.hxx b/include/svx/sxcllitm.hxx index 8fa6eaf81285..4ee4c13dbae0 100644 --- a/include/svx/sxcllitm.hxx +++ b/include/svx/sxcllitm.hxx @@ -36,8 +36,8 @@ public: SdrCaptionLineLenItem(SdrCaptionLineLenItem const &) = default; SdrCaptionLineLenItem(SdrCaptionLineLenItem &&) = default; - SdrCaptionLineLenItem & operator =(SdrCaptionLineLenItem const &) = default; - SdrCaptionLineLenItem & operator =(SdrCaptionLineLenItem &&) = default; + SdrCaptionLineLenItem & operator =(SdrCaptionLineLenItem const &) = delete; // due to SdrMetricItem + SdrCaptionLineLenItem & operator =(SdrCaptionLineLenItem &&) = delete; // due to SdrMetricItem }; /** @@ -52,8 +52,8 @@ public: SdrCaptionFitLineLenItem(SdrCaptionFitLineLenItem const &) = default; SdrCaptionFitLineLenItem(SdrCaptionFitLineLenItem &&) = default; - SdrCaptionFitLineLenItem & operator =(SdrCaptionFitLineLenItem const &) = default; - SdrCaptionFitLineLenItem & operator =(SdrCaptionFitLineLenItem &&) = default; + SdrCaptionFitLineLenItem & operator =(SdrCaptionFitLineLenItem const &) = delete; // due to SdrYesNoItem + SdrCaptionFitLineLenItem & operator =(SdrCaptionFitLineLenItem &&) = delete; // due to SdrYesNoItem }; #endif diff --git a/include/svx/sxmbritm.hxx b/include/svx/sxmbritm.hxx index 25646ae92d7b..13ccf1620404 100644 --- a/include/svx/sxmbritm.hxx +++ b/include/svx/sxmbritm.hxx @@ -37,8 +37,8 @@ public: SdrMeasureBelowRefEdgeItem(SdrMeasureBelowRefEdgeItem const &) = default; SdrMeasureBelowRefEdgeItem(SdrMeasureBelowRefEdgeItem &&) = default; - SdrMeasureBelowRefEdgeItem & operator =(SdrMeasureBelowRefEdgeItem const &) = default; - SdrMeasureBelowRefEdgeItem & operator =(SdrMeasureBelowRefEdgeItem &&) = default; + SdrMeasureBelowRefEdgeItem & operator =(SdrMeasureBelowRefEdgeItem const &) = delete; // due to SdrYesNoItem + SdrMeasureBelowRefEdgeItem & operator =(SdrMeasureBelowRefEdgeItem &&) = delete; // due to SdrYesNoItem }; #endif diff --git a/include/svx/sxmtfitm.hxx b/include/svx/sxmtfitm.hxx index e92bc21b2b39..c2847663e2c0 100644 --- a/include/svx/sxmtfitm.hxx +++ b/include/svx/sxmtfitm.hxx @@ -35,8 +35,8 @@ public: SdrMeasureTextIsFixedAngleItem(SdrMeasureTextIsFixedAngleItem const &) = default; SdrMeasureTextIsFixedAngleItem(SdrMeasureTextIsFixedAngleItem &&) = default; - SdrMeasureTextIsFixedAngleItem & operator =(SdrMeasureTextIsFixedAngleItem const &) = default; - SdrMeasureTextIsFixedAngleItem & operator =(SdrMeasureTextIsFixedAngleItem &&) = default; + SdrMeasureTextIsFixedAngleItem & operator =(SdrMeasureTextIsFixedAngleItem const &) = delete; // due to SdrYesNoItem + SdrMeasureTextIsFixedAngleItem & operator =(SdrMeasureTextIsFixedAngleItem &&) = delete; // due to SdrYesNoItem }; //Angle of the text in 1/100deg. 0=horizontal; read from left to right. (n.i.) @@ -48,8 +48,8 @@ public: SdrMeasureTextFixedAngleItem(SdrMeasureTextFixedAngleItem const &) = default; SdrMeasureTextFixedAngleItem(SdrMeasureTextFixedAngleItem &&) = default; - SdrMeasureTextFixedAngleItem & operator =(SdrMeasureTextFixedAngleItem const &) = default; - SdrMeasureTextFixedAngleItem & operator =(SdrMeasureTextFixedAngleItem &&) = default; + SdrMeasureTextFixedAngleItem & operator =(SdrMeasureTextFixedAngleItem const &) = delete; // due to SdrAngleItem + SdrMeasureTextFixedAngleItem & operator =(SdrMeasureTextFixedAngleItem &&) = delete; // due to SdrAngleItem }; // The decimal places used for the measure value @@ -61,8 +61,8 @@ public: SdrMeasureDecimalPlacesItem(SdrMeasureDecimalPlacesItem const &) = default; SdrMeasureDecimalPlacesItem(SdrMeasureDecimalPlacesItem &&) = default; - SdrMeasureDecimalPlacesItem & operator =(SdrMeasureDecimalPlacesItem const &) = default; - SdrMeasureDecimalPlacesItem & operator =(SdrMeasureDecimalPlacesItem &&) = default; + SdrMeasureDecimalPlacesItem & operator =(SdrMeasureDecimalPlacesItem const &) = delete; // due to SfxInt16Item + SdrMeasureDecimalPlacesItem & operator =(SdrMeasureDecimalPlacesItem &&) = delete; // due to SfxInt16Item }; #endif diff --git a/include/svx/sxmtritm.hxx b/include/svx/sxmtritm.hxx index 78da1e7a1185..ab517f7ee87e 100644 --- a/include/svx/sxmtritm.hxx +++ b/include/svx/sxmtritm.hxx @@ -31,8 +31,8 @@ public: SdrMeasureTextRota90Item(SdrMeasureTextRota90Item const &) = default; SdrMeasureTextRota90Item(SdrMeasureTextRota90Item &&) = default; - SdrMeasureTextRota90Item & operator =(SdrMeasureTextRota90Item const &) = default; - SdrMeasureTextRota90Item & operator =(SdrMeasureTextRota90Item &&) = default; + SdrMeasureTextRota90Item & operator =(SdrMeasureTextRota90Item const &) = delete; // due to SdrYesNoItem + SdrMeasureTextRota90Item & operator =(SdrMeasureTextRota90Item &&) = delete; // due to SdrYesNoItem }; // Turn the calculated TextRect through 180 deg @@ -45,8 +45,8 @@ public: SdrMeasureTextUpsideDownItem(SdrMeasureTextUpsideDownItem const &) = default; SdrMeasureTextUpsideDownItem(SdrMeasureTextUpsideDownItem &&) = default; - SdrMeasureTextUpsideDownItem & operator =(SdrMeasureTextUpsideDownItem const &) = default; - SdrMeasureTextUpsideDownItem & operator =(SdrMeasureTextUpsideDownItem &&) = default; + SdrMeasureTextUpsideDownItem & operator =(SdrMeasureTextUpsideDownItem const &) = delete; // due to SdrYesNoItem + SdrMeasureTextUpsideDownItem & operator =(SdrMeasureTextUpsideDownItem &&) = delete; // due to SdrYesNoItem }; #endif |