From 7b7427e1a64cb5316771caf82aa1bdb2ab8d682c Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 25 May 2015 13:54:18 +0100 Subject: [PATCH] Add missing 'override' specifiers --- src/highlighter_group.hh | 2 +- src/highlighters.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/highlighter_group.hh b/src/highlighter_group.hh index 9f813ccb..7cd525a6 100644 --- a/src/highlighter_group.hh +++ b/src/highlighter_group.hh @@ -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; diff --git a/src/highlighters.cc b/src/highlighters.cc index 286b22c6..091bbb4e 100644 --- a/src/highlighters.cc +++ b/src/highlighters.cc @@ -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;