Add override keyword everywhere it's required
Clang catches some of these. Add override keywords where we override
functions, per cpp core guidelines.
Change-Id: I66f9e6dff53e07f0057d86a806701593be16b188
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/test/async/context.cpp b/test/async/context.cpp
index 03480c9..7f821ed 100644
--- a/test/async/context.cpp
+++ b/test/async/context.cpp
@@ -4,7 +4,7 @@
struct Context : public testing::Test
{
- ~Context() noexcept = default;
+ ~Context() noexcept override = default;
void TearDown() override
{
diff --git a/test/timer.cpp b/test/timer.cpp
index 48152b0..26ad992 100644
--- a/test/timer.cpp
+++ b/test/timer.cpp
@@ -31,7 +31,7 @@
}
// Gets called as part of each TEST_F destruction
- ~TimerTest()
+ ~TimerTest() override
{
events = sd_event_unref(events);
}
@@ -74,7 +74,7 @@
}
// Gets called as part of each TEST_F destruction
- ~TimerTestCallBack()
+ ~TimerTestCallBack() override
{
events = sd_event_unref(events);
}