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.
This commit is contained in:
parent
dc9c750efd
commit
58687ee7c4
@ -19,6 +19,8 @@ class Parser;
|
||||
// functions.
|
||||
class GraphBuilderInterface {
|
||||
public:
|
||||
virtual ~GraphBuilderInterface() = 0;
|
||||
|
||||
// Create and return a new node with a null value.
|
||||
virtual void *NewNull(const Mark &mark, void *pParentNode) = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user