Kaydet (Commit) 3db830d3 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 22c3b407
......@@ -90,8 +90,8 @@ protected:
sal_Int32& nXOut, sal_Int32& nYOut, sal_Int32& nWidthOut, sal_Int32& nHeightOut );
public:
DlgEdObj(DlgEdObj const &) = default;
DlgEdObj(DlgEdObj &&) = default;
DlgEdObj(DlgEdObj const &) = delete; // due to SdrUnoObj
DlgEdObj(DlgEdObj &&) = delete; // due to SdrUnoObj
DlgEdObj & operator =(DlgEdObj const &) = default;
DlgEdObj & operator =(DlgEdObj &&) = default;
......
......@@ -41,8 +41,8 @@ namespace cppcanvas
ImplBitmapCanvas(ImplBitmapCanvas const &) = default;
ImplBitmapCanvas(ImplBitmapCanvas &&) = default;
ImplBitmapCanvas & operator =(ImplBitmapCanvas const &) = default;
ImplBitmapCanvas & operator =(ImplBitmapCanvas &&) = default;
ImplBitmapCanvas & operator =(ImplBitmapCanvas const &) = delete; // due to const mxBitmapCanvas
ImplBitmapCanvas & operator =(ImplBitmapCanvas &&) = delete; // due to const mxBitmapCanvas
virtual ::basegfx::B2ISize getSize() const override;
......
......@@ -55,8 +55,8 @@ namespace cppcanvas
ImplCanvas(ImplCanvas const &) = default;
ImplCanvas(ImplCanvas &&) = default;
ImplCanvas & operator =(ImplCanvas const &) = default;
ImplCanvas & operator =(ImplCanvas &&) = default;
ImplCanvas & operator =(ImplCanvas const &) = delete; // due to const mxCanvas
ImplCanvas & operator =(ImplCanvas &&) = delete; // due to const mxCanvas
virtual void setTransformation( const ::basegfx::B2DHomMatrix& rMatrix ) override;
virtual ::basegfx::B2DHomMatrix getTransformation() const override;
......
......@@ -42,8 +42,8 @@ public:
SvxFormatSplitItem(SvxFormatSplitItem const &) = default;
SvxFormatSplitItem(SvxFormatSplitItem &&) = default;
SvxFormatSplitItem & operator =(SvxFormatSplitItem const &) = default;
SvxFormatSplitItem & operator =(SvxFormatSplitItem &&) = default;
SvxFormatSplitItem & operator =(SvxFormatSplitItem const &) = delete; // due to SfxBoolItem
SvxFormatSplitItem & operator =(SvxFormatSplitItem &&) = delete; // due to SfxBoolItem
// "pure virtual Methods" from SfxPoolItem
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
......
......@@ -38,8 +38,8 @@ public:
SvxTwoLinesItem(SvxTwoLinesItem const &) = default;
SvxTwoLinesItem(SvxTwoLinesItem &&) = default;
SvxTwoLinesItem & operator =(SvxTwoLinesItem const &) = default;
SvxTwoLinesItem & operator =(SvxTwoLinesItem &&) = default;
SvxTwoLinesItem & operator =(SvxTwoLinesItem const &) = delete; // due to SfxPoolItem
SvxTwoLinesItem & operator =(SvxTwoLinesItem &&) = delete; // due to SfxPoolItem
// "pure virtual Methods" from SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
......
......@@ -34,8 +34,8 @@ public:
SvxWritingModeItem(SvxWritingModeItem const &) = default;
SvxWritingModeItem(SvxWritingModeItem &&) = default;
SvxWritingModeItem & operator =(SvxWritingModeItem const &) = default;
SvxWritingModeItem & operator =(SvxWritingModeItem &&) = default;
SvxWritingModeItem & operator =(SvxWritingModeItem const &) = delete; // due to SfxUInt16Item
SvxWritingModeItem & operator =(SvxWritingModeItem &&) = delete; // due to SfxUInt16Item
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual sal_uInt16 GetVersion( sal_uInt16 nFileVersion ) const override;
......
......@@ -231,8 +231,8 @@ public:
ContextHandler2(ContextHandler2 const &) = default;
ContextHandler2(ContextHandler2 &&) = default;
ContextHandler2 & operator =(ContextHandler2 const &) = default;
ContextHandler2 & operator =(ContextHandler2 &&) = default;
ContextHandler2 & operator =(ContextHandler2 const &) = delete; // due to ContextHandler
ContextHandler2 & operator =(ContextHandler2 &&) = delete; // due to ContextHandler
// resolve ambiguity from base classes
virtual void SAL_CALL acquire() throw() override { ContextHandler::acquire(); }
......
......@@ -95,8 +95,8 @@ public:
FragmentHandler(FragmentHandler const &) = default;
FragmentHandler(FragmentHandler &&) = default;
FragmentHandler & operator =(FragmentHandler const &) = default;
FragmentHandler & operator =(FragmentHandler &&) = default;
FragmentHandler & operator =(FragmentHandler const &) = delete; // due to ContextHandler
FragmentHandler & operator =(FragmentHandler &&) = delete; // due to ContextHandler
/** Returns the com.sun.star.xml.sax.XFastContextHandler interface of this context. */
css::uno::Reference< css::xml::sax::XFastContextHandler >
......
......@@ -71,8 +71,8 @@ public:
FragmentHandler2(FragmentHandler2 const &) = default;
FragmentHandler2(FragmentHandler2 &&) = default;
FragmentHandler2 & operator =(FragmentHandler2 const &) = default;
FragmentHandler2 & operator =(FragmentHandler2 &&) = default;
FragmentHandler2 & operator =(FragmentHandler2 const &) = delete; // due to FragmentHandler
FragmentHandler2 & operator =(FragmentHandler2 &&) = delete; // due to FragmentHandler
// resolve ambiguity from base classes
virtual void SAL_CALL acquire() throw() override { FragmentHandler::acquire(); }
......
......@@ -36,8 +36,8 @@ public:
SfxGlobalNameItem(SfxGlobalNameItem const &) = default;
SfxGlobalNameItem(SfxGlobalNameItem &&) = default;
SfxGlobalNameItem & operator =(SfxGlobalNameItem const &) = default;
SfxGlobalNameItem & operator =(SfxGlobalNameItem &&) = default;
SfxGlobalNameItem & operator =(SfxGlobalNameItem const &) = delete; // due to SfxPoolItem
SfxGlobalNameItem & operator =(SfxGlobalNameItem &&) = delete; // due to SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
......
......@@ -28,8 +28,8 @@ public:
SfxGrabBagItem(SfxGrabBagItem const&) = default;
SfxGrabBagItem(SfxGrabBagItem&&) = default;
SfxGrabBagItem& operator=(SfxGrabBagItem const&) = default;
SfxGrabBagItem& operator=(SfxGrabBagItem&&) = default;
SfxGrabBagItem& operator=(SfxGrabBagItem const&) = delete; // due to SfxPoolItem
SfxGrabBagItem& operator=(SfxGrabBagItem&&) = delete; // due to SfxPoolItem
const std::map<OUString, css::uno::Any>& GetGrabBag() const { return m_aMap; }
......
......@@ -38,8 +38,8 @@ public:
SfxIntegerListItem(SfxIntegerListItem const &) = default;
SfxIntegerListItem(SfxIntegerListItem &&) = default;
SfxIntegerListItem & operator =(SfxIntegerListItem const &) = default;
SfxIntegerListItem & operator =(SfxIntegerListItem &&) = default;
SfxIntegerListItem & operator =(SfxIntegerListItem const &) = delete; // due to SfxPoolItem
SfxIntegerListItem & operator =(SfxIntegerListItem &&) = delete; // due to SfxPoolItem
const std::vector< sal_Int32 >& GetList() const { return m_aList; }
......
......@@ -25,8 +25,8 @@ public:
SfxInt64Item(SfxInt64Item const &) = default;
SfxInt64Item(SfxInt64Item &&) = default;
SfxInt64Item & operator =(SfxInt64Item const &) = default;
SfxInt64Item & operator =(SfxInt64Item &&) = default;
SfxInt64Item & operator =(SfxInt64Item const &) = delete; // due to SfxPoolItem;
SfxInt64Item & operator =(SfxInt64Item &&) = delete; // due to SfxPoolItem
virtual bool operator== ( const SfxPoolItem& rItem ) const override;
......
......@@ -35,8 +35,8 @@ public:
SfxLockBytesItem(SfxLockBytesItem const &) = default;
SfxLockBytesItem(SfxLockBytesItem &&) = default;
SfxLockBytesItem & operator =(SfxLockBytesItem const &) = default;
SfxLockBytesItem & operator =(SfxLockBytesItem &&) = default;
SfxLockBytesItem & operator =(SfxLockBytesItem const &) = delete; // due to SfxPoolItem
SfxLockBytesItem & operator =(SfxLockBytesItem &&) = delete; // due to SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
......
......@@ -255,8 +255,8 @@ public:
SfxVoidItem(SfxVoidItem const &) = default;
SfxVoidItem(SfxVoidItem &&) = default;
SfxVoidItem & operator =(SfxVoidItem const &) = default;
SfxVoidItem & operator =(SfxVoidItem &&) = default;
SfxVoidItem & operator =(SfxVoidItem const &) = delete; // due to SfxPoolItem
SfxVoidItem & operator =(SfxVoidItem &&) = delete; // due to SfxPoolItem
virtual bool operator==( const SfxPoolItem& ) const override;
......
......@@ -40,8 +40,8 @@ public:
SfxStringListItem(SfxStringListItem const &) = default;
SfxStringListItem(SfxStringListItem &&) = default;
SfxStringListItem & operator =(SfxStringListItem const &) = default;
SfxStringListItem & operator =(SfxStringListItem &&) = default;
SfxStringListItem & operator =(SfxStringListItem const &) = delete; // due to SfxPoolItem
SfxStringListItem & operator =(SfxStringListItem &&) = delete; // due to SfxPoolItem
std::vector<OUString>& GetList();
......
......@@ -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;
......
......@@ -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,
......
......@@ -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
......
......@@ -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;
......
......@@ -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
};
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -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
......
......@@ -172,8 +172,8 @@ public:
UnoMultiPageModel(UnoMultiPageModel const &) = default;
UnoMultiPageModel(UnoMultiPageModel &&) = default;
UnoMultiPageModel & operator =(UnoMultiPageModel const &) = default;
UnoMultiPageModel & operator =(UnoMultiPageModel &&) = default;
UnoMultiPageModel & operator =(UnoMultiPageModel const &) = delete; // due to ControlModelContainerBase
UnoMultiPageModel & operator =(UnoMultiPageModel &&) = delete; // due to ControlModelContainerBase
rtl::Reference<UnoControlModel> Clone() const override;
......@@ -251,8 +251,8 @@ public:
UnoPageModel(UnoPageModel const &) = default;
UnoPageModel(UnoPageModel &&) = default;
UnoPageModel & operator =(UnoPageModel const &) = default;
UnoPageModel & operator =(UnoPageModel &&) = default;
UnoPageModel & operator =(UnoPageModel const &) = delete; // due to ControlModelContainerBase
UnoPageModel & operator =(UnoPageModel &&) = delete; // due to ControlModelContainerBase
rtl::Reference<UnoControlModel> Clone() const override;
......@@ -289,8 +289,8 @@ public:
UnoFrameModel(UnoFrameModel const &) = default;
UnoFrameModel(UnoFrameModel &&) = default;
UnoFrameModel & operator =(UnoFrameModel const &) = default;
UnoFrameModel & operator =(UnoFrameModel &&) = default;
UnoFrameModel & operator =(UnoFrameModel const &) = delete; // due to ControlModelContainerBase
UnoFrameModel & operator =(UnoFrameModel &&) = delete; // due to ControlModelContainerBase
rtl::Reference<UnoControlModel> Clone() const override;
......
......@@ -167,8 +167,8 @@ namespace utl
ConfigItem(ConfigItem const &) = default;
ConfigItem(ConfigItem &&) = default;
ConfigItem & operator =(ConfigItem const &) = default;
ConfigItem & operator =(ConfigItem &&) = default;
ConfigItem & operator =(ConfigItem const &) = delete; // due to const sSubTree
ConfigItem & operator =(ConfigItem &&) = delete; // due to const sSubTree
/** is called from the ConfigManager before application ends of from the
PropertyChangeListener if the sub tree broadcasts changes. */
......
This diff is collapsed.
......@@ -271,8 +271,8 @@ class VCL_DLLPUBLIC ImplControlValue
ImplControlValue(ImplControlValue const &) = default;
ImplControlValue(ImplControlValue &&) = default;
ImplControlValue & operator =(ImplControlValue const &) = default;
ImplControlValue & operator =(ImplControlValue &&) = default;
ImplControlValue & operator =(ImplControlValue const &) = delete; // due to const mType
ImplControlValue & operator =(ImplControlValue &&) = delete; // due to const mType
virtual ImplControlValue* clone() const;
......@@ -317,8 +317,8 @@ class VCL_DLLPUBLIC ScrollbarValue : public ImplControlValue
ScrollbarValue(ScrollbarValue const &) = default;
ScrollbarValue(ScrollbarValue &&) = default;
ScrollbarValue & operator =(ScrollbarValue const &) = default;
ScrollbarValue & operator =(ScrollbarValue &&) = default;
ScrollbarValue & operator =(ScrollbarValue const &) = delete; // due to ImplControlValue
ScrollbarValue & operator =(ScrollbarValue &&) = delete; // due to ImplControlValue
};
class VCL_DLLPUBLIC SliderValue : public ImplControlValue
......@@ -339,8 +339,8 @@ class VCL_DLLPUBLIC SliderValue : public ImplControlValue
SliderValue(SliderValue const &) = default;
SliderValue(SliderValue &&) = default;
SliderValue & operator =(SliderValue const &) = default;
SliderValue & operator =(SliderValue &&) = default;
SliderValue & operator =(SliderValue const &) = delete; // due to ImplControlValue
SliderValue & operator =(SliderValue &&) = delete; // due to ImplControlValue
};
/* TabitemValue:
......@@ -379,8 +379,8 @@ class VCL_DLLPUBLIC TabitemValue : public ImplControlValue
TabitemValue(TabitemValue const &) = default;
TabitemValue(TabitemValue &&) = default;
TabitemValue & operator =(TabitemValue const &) = default;
TabitemValue & operator =(TabitemValue &&) = default;
TabitemValue & operator =(TabitemValue const &) = delete; // due to ImplControlValue
TabitemValue & operator =(TabitemValue &&) = delete; // due to ImplControlValue
bool isLeftAligned() const { return bool(mnAlignment & TabitemFlags::LeftAligned); }
bool isRightAligned() const { return bool(mnAlignment & TabitemFlags::RightAligned); }
......@@ -421,8 +421,8 @@ class VCL_DLLPUBLIC SpinbuttonValue : public ImplControlValue
SpinbuttonValue(SpinbuttonValue const &) = default;
SpinbuttonValue(SpinbuttonValue &&) = default;
SpinbuttonValue & operator =(SpinbuttonValue const &) = default;
SpinbuttonValue & operator =(SpinbuttonValue &&) = default;
SpinbuttonValue & operator =(SpinbuttonValue const &) = delete; // due to ImplControlValue
SpinbuttonValue & operator =(SpinbuttonValue &&) = delete; // due to ImplControlValue
};
/* Toolbarvalue:
......@@ -439,8 +439,8 @@ public:
ToolbarValue(ToolbarValue const &) = default;
ToolbarValue(ToolbarValue &&) = default;
ToolbarValue & operator =(ToolbarValue const &) = default;
ToolbarValue & operator =(ToolbarValue &&) = default;
ToolbarValue & operator =(ToolbarValue const &) = delete; // due to ImplControlValue
ToolbarValue & operator =(ToolbarValue &&) = delete; // due to ImplControlValue
tools::Rectangle maGripRect;
bool mbIsTopDockingArea; // indicates that this is the top aligned dockingarea
......@@ -460,8 +460,8 @@ public:
virtual MenubarValue* clone() const override;
MenubarValue(MenubarValue const &) = default;
MenubarValue(MenubarValue &&) = default;
MenubarValue & operator =(MenubarValue const &) = default;
MenubarValue & operator =(MenubarValue &&) = default;
MenubarValue & operator =(MenubarValue const &) = delete; // due to ImplControlValue
MenubarValue & operator =(MenubarValue &&) = delete; // due to ImplControlValue
int maTopDockingAreaHeight;
};
......@@ -481,8 +481,8 @@ public:
virtual MenupopupValue* clone() const override;
MenupopupValue(MenupopupValue const &) = default;
MenupopupValue(MenupopupValue &&) = default;
MenupopupValue & operator =(MenupopupValue const &) = default;
MenupopupValue & operator =(MenupopupValue &&) = default;
MenupopupValue & operator =(MenupopupValue const &) = delete; // due to ImplControlValue
MenupopupValue & operator =(MenupopupValue &&) = delete; // due to ImplControlValue
tools::Rectangle maItemRect;
};
......@@ -501,8 +501,8 @@ public:
PushButtonValue(PushButtonValue const &) = default;
PushButtonValue(PushButtonValue &&) = default;
PushButtonValue & operator =(PushButtonValue const &) = default;
PushButtonValue & operator =(PushButtonValue &&) = default;
PushButtonValue & operator =(PushButtonValue const &) = delete; // due to ImplControlValue
PushButtonValue & operator =(PushButtonValue &&) = delete; // due to ImplControlValue
bool mbBevelButton:1; // only used on OSX
bool mbSingleLine:1; // only used on OSX
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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();
......
......@@ -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;
......
......@@ -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;
......
......@@ -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;
......
......@@ -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
......
......@@ -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