From d1f7136481a286e3b363b5cb12631fe7db04ecb4 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Fri, 14 Aug 2020 20:28:30 +0000 Subject: cppcheck: Add several missing override statements to make cppcheck happy (which is one of our unit tests). --- src/indicator.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/indicator.h') diff --git a/src/indicator.h b/src/indicator.h index c55be79..b5524d1 100644 --- a/src/indicator.h +++ b/src/indicator.h @@ -64,10 +64,10 @@ public: SimpleProfile(const char* name, const std::shared_ptr& menu): m_name(name), m_menu(menu) {} virtual ~SimpleProfile(); - std::string name() const {return m_name;} + std::string name() const override {return m_name;} core::Property
& header() {return m_header;} - const core::Property
& header() const {return m_header;} - std::shared_ptr menu_model() const {return m_menu;} + const core::Property
& header() const override {return m_header;} + std::shared_ptr menu_model() const override {return m_menu;} protected: const std::string m_name; -- cgit v1.2.3