Add virtual destructor to Highlighter
This commit is contained in:
parent
cd24bf93e8
commit
2213f98176
|
@ -31,6 +31,7 @@ using HighlighterAndId = std::pair<String, std::unique_ptr<Highlighter>>;
|
||||||
|
|
||||||
struct Highlighter
|
struct Highlighter
|
||||||
{
|
{
|
||||||
|
virtual ~Highlighter() {}
|
||||||
virtual void highlight(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer) = 0;
|
virtual void highlight(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer) = 0;
|
||||||
|
|
||||||
virtual bool has_children() const { return false; }
|
virtual bool has_children() const { return false; }
|
||||||
|
|
Loading…
Reference in New Issue
Block a user