From 829ea811e19fead7ad35049342136b592077674b Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 15 Nov 2021 12:22:11 +0100 Subject: Avoid some -Werror,-Wdeprecated-copy-with-user-provided-dtor ...after e6968f0485cfb2f6c941d11c438386e14a47095d "PPTX import: fix handling of theme overrides in the chart import" introduced a use of std::make_shared Change-Id: I5f6384b81e02034b6b2fdf3a3bad0148de4eb584 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125228 Tested-by: Tor Lillqvist Reviewed-by: Tor Lillqvist --- include/oox/drawingml/shape.hxx | 2 ++ include/oox/drawingml/theme.hxx | 3 --- 2 files changed, 2 insertions(+), 3 deletions(-) (limited to 'include/oox') diff --git a/include/oox/drawingml/shape.hxx b/include/oox/drawingml/shape.hxx index 96686f26f03c..57a47cbdb4e5 100644 --- a/include/oox/drawingml/shape.hxx +++ b/include/oox/drawingml/shape.hxx @@ -107,7 +107,9 @@ public: explicit Shape( const char* pServiceType = nullptr, bool bDefaultHeight = true ); explicit Shape( const ShapePtr& pSourceShape ); + Shape(Shape const &) = default; virtual ~Shape(); + Shape & operator =(Shape const &) = default; OUString& getServiceName(){ return msServiceName; } void setServiceName( const char* pServiceName ); diff --git a/include/oox/drawingml/theme.hxx b/include/oox/drawingml/theme.hxx index 6d64649f3a69..944e58b6e79c 100644 --- a/include/oox/drawingml/theme.hxx +++ b/include/oox/drawingml/theme.hxx @@ -56,9 +56,6 @@ class TextFont; class OOX_DLLPUBLIC Theme { public: - Theme(); - ~Theme(); - void setStyleName( const OUString& rStyleName ) { maStyleName = rStyleName; } ClrScheme& getClrScheme() { return maClrScheme; } -- cgit