Add missing 'override' specifiers

This commit is contained in:
Maxime Coste 2015-05-25 13:54:18 +01:00
parent b42de85031
commit 7b7427e1a6
2 changed files with 2 additions and 2 deletions

View File

@ -19,7 +19,7 @@ class HighlighterGroup : public Highlighter
public:
void highlight(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer, BufferRange range) override;
bool has_children() const { return true; }
bool has_children() const override { return true; }
void add_child(HighlighterAndId&& hl) override;
void remove_child(StringView id) override;

View File

@ -1096,7 +1096,7 @@ public:
m_groups.append({m_default_group, HighlighterGroup{}});
}
void highlight(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer, BufferRange range)
void highlight(const Context& context, HighlightFlags flags, DisplayBuffer& display_buffer, BufferRange range) override
{
if (flags != HighlightFlags::Highlight)
return;