diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2019-11-29 11:58:10 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2019-11-29 17:07:09 +0100 |
commit | e9e4eb0736d5582fa37dcad20bf5826c50029249 (patch) | |
tree | ae0c61293c82cd56bb434205ce01c8bfeb6b6d6d /include | |
parent | c2b36cd6f7cf70e77dac5938f18146b0687523e6 (diff) |
Fix some -Werror=deprecated-copy-dtor
...which would be found by GCC 10 trunk when explicitly enabling
-Wdeprecated-copy-dtor (warning about cases where the non-deleted definition of
an implicit copy ctor or assignment op is deprecated because of a user-provided
dtor; looks like breaking it out into its own option, which, unlike
-Wdeprecated-copy, isn't enabled by -Wextra, isn't all too helpful going
forward, see discussion at <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88136>
"-Wdeprecated-copy is draconian and shouldn't be in -Wall").
Using =delete instead of =default in cases that would otherwise cause Clang
-Wdefaulted-function-deleted, cf. 3db830d354de80b319fb818a0373365a1e647264
"Silence new Clang trunk -Wdefaulted-function-deleted".
Change-Id: If50214ad8ac4e9ff12127eb3e07f610deabeca8a
Reviewed-on: https://gerrit.libreoffice.org/84056
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/editeng/frmdiritem.hxx | 5 | ||||
-rw-r--r-- | include/i18nlangtag/languagetag.hxx | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/include/editeng/frmdiritem.hxx b/include/editeng/frmdiritem.hxx index 6a0327dd051e..89524b743a4f 100644 --- a/include/editeng/frmdiritem.hxx +++ b/include/editeng/frmdiritem.hxx @@ -34,6 +34,11 @@ public: SvxFrameDirectionItem( SvxFrameDirection nValue, sal_uInt16 nWhich ); virtual ~SvxFrameDirectionItem() override; + SvxFrameDirectionItem(SvxFrameDirectionItem const &) = default; + SvxFrameDirectionItem(SvxFrameDirectionItem &&) = default; + SvxFrameDirectionItem & operator =(SvxFrameDirectionItem const &) = delete; + SvxFrameDirectionItem & operator =(SvxFrameDirectionItem &&) = delete; + virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override; virtual bool GetPresentation( SfxItemPresentation ePres, diff --git a/include/i18nlangtag/languagetag.hxx b/include/i18nlangtag/languagetag.hxx index 2d102a500c27..66b18d3faec7 100644 --- a/include/i18nlangtag/languagetag.hxx +++ b/include/i18nlangtag/languagetag.hxx @@ -109,6 +109,11 @@ public: ~LanguageTag(); + LanguageTag(LanguageTag const &) = default; + LanguageTag(LanguageTag &&) = default; + LanguageTag & operator =(LanguageTag const &) = default; + LanguageTag & operator =(LanguageTag &&) = default; + /** Obtain BCP 47 language tag. @param bResolveSystem |