summaryrefslogtreecommitdiff
path: root/chart2
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2018-07-26 12:03:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2018-07-26 20:40:40 +0200
commit58f23b8f1fb0e696e40a6ecb356012dc59198abb (patch)
tree9ec51239649da2462f69079b18920505ab76207a /chart2
parent74da5c2914876cb2b1d4cc0e898d6bab0c99fb98 (diff)
chart2: 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. Change-Id: Idecc69d147607824b95cd6fc715feb88c3fa1591 Reviewed-on: https://gerrit.libreoffice.org/58071 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'chart2')
-rw-r--r--chart2/source/view/charttypes/CategoryPositionHelper.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/chart2/source/view/charttypes/CategoryPositionHelper.hxx b/chart2/source/view/charttypes/CategoryPositionHelper.hxx
index 6b7491b47285..2fd0d3d0aaaa 100644
--- a/chart2/source/view/charttypes/CategoryPositionHelper.hxx
+++ b/chart2/source/view/charttypes/CategoryPositionHelper.hxx
@@ -29,6 +29,11 @@ public:
CategoryPositionHelper( double fSeriesCount, double CategoryWidth = 1.0);
virtual ~CategoryPositionHelper();
+ CategoryPositionHelper(CategoryPositionHelper const &) = default;
+ CategoryPositionHelper(CategoryPositionHelper &&) = default;
+ CategoryPositionHelper & operator =(CategoryPositionHelper const &) = default;
+ CategoryPositionHelper & operator =(CategoryPositionHelper &&) = default;
+
double getScaledSlotWidth() const;
virtual double getScaledSlotPos( double fCategoryX, double fSeriesNumber ) const;
void setCategoryWidth( double fCategoryWidth );