From 3db830d354de80b319fb818a0373365a1e647264 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 2 Oct 2018 17:28:15 +0200 Subject: 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 "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 --- include/svx/sxcecitm.hxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/svx/sxcecitm.hxx') 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 }; -- cgit