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:
Matthew Woehlke 2017-11-09 14:18:30 -05:00
parent 46dcdc3ea2
commit b39f44be07

View File

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