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-exporter.cpp | |
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-exporter.cpp')
-rw-r--r-- | tests/test-exporter.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test-exporter.cpp b/tests/test-exporter.cpp index ec19ef4..be8fcc3 100644 --- a/tests/test-exporter.cpp +++ b/tests/test-exporter.cpp @@ -42,7 +42,7 @@ protected: GTestDBus* bus = nullptr; - void SetUp() + void SetUp() override { super::SetUp(); @@ -54,7 +54,7 @@ protected: g_setenv("DBUS_SESSION_BUS_ADDRESS", address, true); } - void TearDown() + void TearDown() override { GError * error = nullptr; GDBusConnection* connection = g_bus_get_sync(G_BUS_TYPE_SESSION, nullptr, &error); @@ -76,9 +76,9 @@ TEST_F(ExporterFixture, HelloWorld) TEST_F(ExporterFixture, Publish) { - std::shared_ptr<State> state(new MockState); - std::shared_ptr<Actions> actions(new MockActions(state)); - std::shared_ptr<Settings> settings(new Settings); + auto state = std::make_shared<MockState>(); + auto actions = std::make_shared<MockActions>(state); + auto settings = std::make_shared<Settings>(); std::vector<std::shared_ptr<Menu>> menus; MenuFactory menu_factory (actions, state); |