From de80c787dba8436ec403126dbec88a6d202a1ad4 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Wed, 13 Jan 2021 23:04:51 +0100 Subject: -Wdeprecated-copy-dtor Change-Id: Ia0875cc409779dd0c5479e314ccc8aae7abd4d94 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109253 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- idlc/inc/astdeclaration.hxx | 5 +++++ idlc/inc/astinterface.hxx | 5 +++++ idlc/inc/astscope.hxx | 5 +++++ 3 files changed, 15 insertions(+) (limited to 'idlc') diff --git a/idlc/inc/astdeclaration.hxx b/idlc/inc/astdeclaration.hxx index ce8f9740a745..0707dbc57bb0 100644 --- a/idlc/inc/astdeclaration.hxx +++ b/idlc/inc/astdeclaration.hxx @@ -63,6 +63,11 @@ public: AstDeclaration(NodeType type, const OString& name, AstScope* pScope); virtual ~AstDeclaration(); + AstDeclaration(AstDeclaration const &) = default; + AstDeclaration(AstDeclaration &&) = default; + AstDeclaration & operator =(AstDeclaration const &) = default; + AstDeclaration & operator =(AstDeclaration &&) = default; + // Data access const OString& getLocalName() const { return m_localName; } diff --git a/idlc/inc/astinterface.hxx b/idlc/inc/astinterface.hxx index 7e3e1e30bad6..03c5f22f5f37 100644 --- a/idlc/inc/astinterface.hxx +++ b/idlc/inc/astinterface.hxx @@ -49,6 +49,11 @@ public: AstScope* pScope); virtual ~AstInterface() override; + AstInterface(AstInterface const &) = default; + AstInterface(AstInterface &&) = default; + AstInterface & operator =(AstInterface const &) = default; + AstInterface & operator =(AstInterface &&) = default; + InheritedInterfaces const & getAllInheritedInterfaces() const { return m_inheritedInterfaces; } diff --git a/idlc/inc/astscope.hxx b/idlc/inc/astscope.hxx index 2e7e258e2312..237b5d0bb82a 100644 --- a/idlc/inc/astscope.hxx +++ b/idlc/inc/astscope.hxx @@ -35,6 +35,11 @@ public: AstScope(NodeType nodeType); virtual ~AstScope(); + AstScope(AstScope const&) = default; + AstScope(AstScope&&) = default; + AstScope& operator=(AstScope const&) = default; + AstScope& operator=(AstScope&&) = default; + NodeType getScopeNodeType() const { return m_nodeType; } AstDeclaration* addDeclaration(AstDeclaration* pDecl); -- cgit