Fix: add virtual destructor to base class

This commit is contained in:
Jacques Lucke 2021-08-30 18:26:55 +02:00
parent 171c3bd2b0
commit af3f744b41
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,8 @@ class SocketDeclaration {
friend NodeDeclarationBuilder;
public:
virtual ~SocketDeclaration() = default;
virtual bNodeSocket &build(bNodeTree &ntree, bNode &node, eNodeSocketInOut in_out) const = 0;
virtual bool matches(const bNodeSocket &socket) const = 0;
virtual bNodeSocket &update_or_build(bNodeTree &ntree, bNode &node, bNodeSocket &socket) const;