mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-26 07:46:21 +02:00
Shebang parser: add virtual destructor
Fixes: warning: destructor called on non-final 'nix::ParseUnquoted' that has virtual functions but non-virtual destructor [-Wdelete-non-abstract-non-virtual-dtor]
This commit is contained in:
parent
1d86bb4f70
commit
251fb23aea
1 changed files with 2 additions and 0 deletions
|
@ -97,6 +97,8 @@ struct Parser {
|
||||||
virtual void operator()(std::shared_ptr<Parser> & state, Strings & r) = 0;
|
virtual void operator()(std::shared_ptr<Parser> & state, Strings & r) = 0;
|
||||||
|
|
||||||
Parser(std::string_view s) : remaining(s) {};
|
Parser(std::string_view s) : remaining(s) {};
|
||||||
|
|
||||||
|
virtual ~Parser() { };
|
||||||
};
|
};
|
||||||
|
|
||||||
struct ParseQuoted : public Parser {
|
struct ParseQuoted : public Parser {
|
||||||
|
|
Loading…
Reference in a new issue