Add virtual destructor to Highlighter

This commit is contained in:
Maxime Coste 2014-10-25 10:40:26 +01:00
parent cd24bf93e8
commit 2213f98176

View File

@ -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; }