[Libreoffice-commits] core.git: chart2/source
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Thu Jul 26 18:41:11 UTC 2018
chart2/source/view/charttypes/CategoryPositionHelper.hxx | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit 58f23b8f1fb0e696e40a6ecb356012dc59198abb
Author: Stephan Bergmann <sbergman at redhat.com>
AuthorDate: Thu Jul 26 12:03:41 2018 +0200
Commit: Stephan Bergmann <sbergman at redhat.com>
CommitDate: Thu Jul 26 20:40:40 2018 +0200
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 at redhat.com>
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 );
More information about the Libreoffice-commits
mailing list