Kaydet (Commit) 58f23b8f authored tarafından Stephan Bergmann's avatar Stephan Bergmann

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: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 74da5c29
...@@ -29,6 +29,11 @@ public: ...@@ -29,6 +29,11 @@ public:
CategoryPositionHelper( double fSeriesCount, double CategoryWidth = 1.0); CategoryPositionHelper( double fSeriesCount, double CategoryWidth = 1.0);
virtual ~CategoryPositionHelper(); virtual ~CategoryPositionHelper();
CategoryPositionHelper(CategoryPositionHelper const &) = default;
CategoryPositionHelper(CategoryPositionHelper &&) = default;
CategoryPositionHelper & operator =(CategoryPositionHelper const &) = default;
CategoryPositionHelper & operator =(CategoryPositionHelper &&) = default;
double getScaledSlotWidth() const; double getScaledSlotWidth() const;
virtual double getScaledSlotPos( double fCategoryX, double fSeriesNumber ) const; virtual double getScaledSlotPos( double fCategoryX, double fSeriesNumber ) const;
void setCategoryWidth( double fCategoryWidth ); void setCategoryWidth( double fCategoryWidth );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment