Add a virtual dtor to the Parser to ensure proper deletion even with casts

This commit is contained in:
Paul Ferrand 2019-11-17 00:20:47 +01:00
parent 43133d94a4
commit 508cdd729a

View file

@ -32,6 +32,7 @@
namespace sfz {
class Parser {
public:
virtual ~Parser() = default;
virtual bool loadSfzFile(const fs::path& file);
const std::map<std::string, std::string>& getDefines() const noexcept { return defines; }
const std::vector<fs::path>& getIncludedFiles() const noexcept { return includedFiles; }