-Wdeprecated-copy-dtor

Change-Id: Ia0875cc409779dd0c5479e314ccc8aae7abd4d94
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/109253
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
This commit is contained in:
Stephan Bergmann 2021-01-13 23:04:51 +01:00
parent 327cd7c961
commit de80c787db
3 changed files with 15 additions and 0 deletions

View File

@ -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; }

View File

@ -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; }

View File

@ -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);