mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 20:51:16 +00:00
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:

committed by
Jesse Beder

parent
dc9c750efd
commit
58687ee7c4
@@ -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;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user