"git@developer.sourcefind.cn:OpenDAS/ollama.git" did not exist on "50b5962042d7c5026d5507af44ae28294f8568d9"
Commit 58687ee7 authored by Matthew Woehlke's avatar Matthew Woehlke Committed by Jesse Beder
Browse files

Add explicit virtual dtor

Add explicit virtual dtor to GraphBuilderInterface. This avoids tripping
a -Wnon-virtual-dtor warning, and also ensures that the correct
(virtual) dtor is called if an instance is deleted via a pointer to the
base type.
parent dc9c750e
...@@ -19,6 +19,8 @@ class Parser; ...@@ -19,6 +19,8 @@ class Parser;
// functions. // functions.
class GraphBuilderInterface { class GraphBuilderInterface {
public: public:
virtual ~GraphBuilderInterface() = 0;
// Create and return a new node with a null value. // Create and return a new node with a null value.
virtual void *NewNull(const Mark &mark, void *pParentNode) = 0; virtual void *NewNull(const Mark &mark, void *pParentNode) = 0;
......
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