diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-07-26 14:02:37 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-07-27 08:26:45 +0200 |
commit | d2a28ebd5878305b29d8dbfc3b537ddfaabd3625 (patch) | |
tree | 31cf4eead2c179466b5ae3e93b217780b70b3bc1 /include/vcl/settings.hxx | |
parent | 739f746254853dbf6552b0fac9192bfd5ddd0118 (diff) |
vcl: avoid -Werror=deprecated-copy (GCC trunk towards GCC 9)
...by explicitly defaulting the copy/move functions (and, where needed in turn,
also a default ctor) for classes that have a user-declared dtor that does
nothing other than an implicitly-defined one would do, but needs to be user-
declared because it is virtual and potentially serves as a key function to
emit the vtable, or is non-public, etc.; and by removing explicitly user-
provided functions that do the same as their implicitly-defined counterparts,
but may prevent implicitly declared copy functions from being defined as non-
deleted in the future. (Even if such a user-provided function was declared
non-inline in an include file, the apparently-used implicitly-defined copy
functions are already include, so why bother with non-inline functions.)
Change-Id: Ife5d8eb699b8b6c84b9229ae275dc386fa189bce
Reviewed-on: https://gerrit.libreoffice.org/58105
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'include/vcl/settings.hxx')
-rw-r--r-- | include/vcl/settings.hxx | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/vcl/settings.hxx b/include/vcl/settings.hxx index 491831e147d9..a004b23e8ebc 100644 --- a/include/vcl/settings.hxx +++ b/include/vcl/settings.hxx @@ -96,8 +96,6 @@ private: public: MouseSettings(); - ~MouseSettings(); - void SetOptions( MouseSettingsOptions nOptions ); MouseSettingsOptions GetOptions() const; @@ -243,7 +241,6 @@ private: public: StyleSettings(); - ~StyleSettings(); void Set3DColors( const Color& rColor ); @@ -623,7 +620,6 @@ class VCL_DLLPUBLIC MiscSettings public: MiscSettings(); - ~MiscSettings(); #ifdef _WIN32 void SetEnableATToolSupport( bool bEnable ); @@ -645,7 +641,6 @@ class VCL_DLLPUBLIC HelpSettings public: HelpSettings(); - ~HelpSettings(); sal_uLong GetTipDelay() const; void SetTipTimeout( sal_uLong nTipTimeout ); @@ -678,8 +673,6 @@ private: public: AllSettings(); - AllSettings( const AllSettings& rSet ); - ~AllSettings(); void SetMouseSettings( const MouseSettings& rSet ); const MouseSettings& GetMouseSettings() const; |