diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-09-19 14:34:50 +0000 |
---|---|---|
committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-09-19 14:34:50 +0000 |
commit | 16a4e034c30f2bc6b151b04707d3ec1a490dba44 (patch) | |
tree | f726165c9979fcb13ce478fd2dafa1ae1efad52b /tests/test-dbus-fixture.h | |
parent | ac54aebec5fa0ba95fb2d583316c0a64ce3384dd (diff) | |
parent | b3d8778a52576b66ab00b08aa939612136a49a01 (diff) | |
download | ayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.tar.gz ayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.tar.bz2 ayatana-indicator-datetime-16a4e034c30f2bc6b151b04707d3ec1a490dba44.zip |
Fix flint++ warnings
Approved by: Ted Gould, PS Jenkins bot
Diffstat (limited to 'tests/test-dbus-fixture.h')
-rw-r--r-- | tests/test-dbus-fixture.h | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/tests/test-dbus-fixture.h b/tests/test-dbus-fixture.h index db06be2..a894f11 100644 --- a/tests/test-dbus-fixture.h +++ b/tests/test-dbus-fixture.h @@ -17,6 +17,9 @@ * Charles Kerr <charles.kerr@canonical.com> */ +#ifndef INDICATOR_DATETIME_TESTS_DBUS_FIXTURE_H +#define INDICATOR_DATETIME_TESTS_DBUS_FIXTURE_H + #include "glib-fixture.h" /*** @@ -27,9 +30,10 @@ class TestDBusFixture: public GlibFixture { public: - TestDBusFixture() {} + TestDBusFixture() =default; + virtual ~TestDBusFixture() =default; - TestDBusFixture(const std::vector<std::string>& service_dirs_in): service_dirs(service_dirs_in) {} + explicit TestDBusFixture(const std::vector<std::string>& service_dirs_in): service_dirs(service_dirs_in) {} private: @@ -65,7 +69,7 @@ class TestDBusFixture: public GlibFixture GDBusConnection * system_bus; const std::vector<std::string> service_dirs; - virtual void SetUp () + virtual void SetUp() override { super::SetUp (); @@ -84,7 +88,7 @@ class TestDBusFixture: public GlibFixture g_main_loop_run (loop); } - virtual void TearDown () + virtual void TearDown() override { wait_msec(); @@ -100,3 +104,5 @@ class TestDBusFixture: public GlibFixture super::TearDown(); } }; + +#endif /* INDICATOR_DATETIME_TESTS_DBUS_FIXTURE_H */ |