aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-08-14 20:28:30 +0000
committerRobert Tari <robert@tari.in>2021-08-04 17:06:27 +0200
commitd1f7136481a286e3b363b5cb12631fe7db04ecb4 (patch)
treea5670afc517b9448c2504d1aadfbe47246ee99e1
parent220be12b373646b06b0a00250a8f2e382893dc17 (diff)
downloadayatana-indicator-display-d1f7136481a286e3b363b5cb12631fe7db04ecb4.tar.gz
ayatana-indicator-display-d1f7136481a286e3b363b5cb12631fe7db04ecb4.tar.bz2
ayatana-indicator-display-d1f7136481a286e3b363b5cb12631fe7db04ecb4.zip
cppcheck: Add several missing override statements to make cppcheck happy (which is one of our unit tests).
-rw-r--r--src/indicator.h6
-rw-r--r--src/rotation-lock.h6
-rw-r--r--tests/unit/adbd-client-test.cpp2
-rw-r--r--tests/unit/rotation-lock-test.cpp4
4 files changed, 9 insertions, 9 deletions
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<GMenuModel>& 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>& header() {return m_header;}
- const core::Property<Header>& header() const {return m_header;}
- std::shared_ptr<GMenuModel> menu_model() const {return m_menu;}
+ const core::Property<Header>& header() const override {return m_header;}
+ std::shared_ptr<GMenuModel> menu_model() const override {return m_menu;}
protected:
const std::string m_name;
diff --git a/src/rotation-lock.h b/src/rotation-lock.h
index 2354c4a..7bdfb14 100644
--- a/src/rotation-lock.h
+++ b/src/rotation-lock.h
@@ -30,9 +30,9 @@ public:
RotationLockIndicator();
~RotationLockIndicator();
- const char* name() const;
- GSimpleActionGroup* action_group() const;
- std::vector<std::shared_ptr<Profile>> profiles() const;
+ const char* name() const override;
+ GSimpleActionGroup* action_group() const override;
+ std::vector<std::shared_ptr<Profile>> profiles() const override;
protected:
class Impl;
diff --git a/tests/unit/adbd-client-test.cpp b/tests/unit/adbd-client-test.cpp
index d1ce740..9b5f1b3 100644
--- a/tests/unit/adbd-client-test.cpp
+++ b/tests/unit/adbd-client-test.cpp
@@ -38,7 +38,7 @@ protected:
std::shared_ptr<std::string> m_tmpdir;
- void SetUp()
+ void SetUp() override
{
super::SetUp();
diff --git a/tests/unit/rotation-lock-test.cpp b/tests/unit/rotation-lock-test.cpp
index b9630b5..a5a6f6c 100644
--- a/tests/unit/rotation-lock-test.cpp
+++ b/tests/unit/rotation-lock-test.cpp
@@ -28,12 +28,12 @@ private:
protected:
- void SetUp()
+ void SetUp() override
{
super::SetUp();
}
- void TearDown()
+ void TearDown() override
{
super::TearDown();
}