summaryrefslogtreecommitdiff
path: root/sc/inc/refhint.hxx
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 13:47:59 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-27 08:20:20 +0200
commitf1a10d4f14e86a2a2a632ff4a091690c2f31f255 (patch)
tree739f86a047016f2ac99c9dca142d666253173c80 /sc/inc/refhint.hxx
parent7f0bdd5e88ed49eebe3c0c8edabecffdddeaff4f (diff)
sc: 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: I4efe3eb088e5f9096be87dd8240504768755112b Reviewed-on: https://gerrit.libreoffice.org/58096 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sc/inc/refhint.hxx')
-rw-r--r--sc/inc/refhint.hxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/sc/inc/refhint.hxx b/sc/inc/refhint.hxx
index e558c8e7fe48..4bc7eb468110 100644
--- a/sc/inc/refhint.hxx
+++ b/sc/inc/refhint.hxx
@@ -39,6 +39,11 @@ public:
RefHint() = delete;
virtual ~RefHint() override = 0;
+ RefHint(RefHint const &) = default;
+ RefHint(RefHint &&) = default;
+ RefHint & operator =(RefHint const &) = default;
+ RefHint & operator =(RefHint &&) = default;
+
Type getType() const;
};
@@ -77,6 +82,11 @@ public:
RefColReorderHint( const sc::ColRowReorderMapType& rColMap, SCTAB nTab, SCROW nRow1, SCROW nRow2 );
virtual ~RefColReorderHint() override;
+ RefColReorderHint(RefColReorderHint const &) = default;
+ RefColReorderHint(RefColReorderHint &&) = default;
+ RefColReorderHint & operator =(RefColReorderHint const &) = default;
+ RefColReorderHint & operator =(RefColReorderHint &&) = default;
+
const sc::ColRowReorderMapType& getColMap() const;
SCTAB getTab() const;
@@ -95,6 +105,11 @@ public:
RefRowReorderHint( const sc::ColRowReorderMapType& rRowMap, SCTAB nTab, SCCOL nCol1, SCCOL nCol2 );
virtual ~RefRowReorderHint() override;
+ RefRowReorderHint(RefRowReorderHint const &) = default;
+ RefRowReorderHint(RefRowReorderHint &&) = default;
+ RefRowReorderHint & operator =(RefRowReorderHint const &) = default;
+ RefRowReorderHint & operator =(RefRowReorderHint &&) = default;
+
const sc::ColRowReorderMapType& getRowMap() const;
SCTAB getTab() const;