Skip to content

Commit b6f3127

Browse files
authored
Add virtual destructor to DataModelBase, such that derived classes will have their destructor called (#31)
1 parent f35f1fe commit b6f3127

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/DataModelBase/DataModelBase.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ namespace ToolFramework{
3030

3131
public:
3232

33-
DataModelBase(); ///< Simple constructor
33+
DataModelBase(); ///< Simple constructor
34+
35+
virtual ~DataModelBase() = default; ///< Simple destructor
3436

3537
Logging *Log; ///< Log class pointer for use in Tools, it can be used to send messages which can have multiple error levels and destination end points
3638

0 commit comments

Comments
 (0)