From b3d8778a52576b66ab00b08aa939612136a49a01 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 17 Sep 2014 11:51:51 -0500 Subject: fix flint++ warnings --- tests/test-exporter.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/test-exporter.cpp') 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(new MockState); - std::shared_ptr actions(new MockActions(state)); - std::shared_ptr settings(new Settings); + auto state = std::make_shared(); + auto actions = std::make_shared(state); + auto settings = std::make_shared(); std::vector> menus; MenuFactory menu_factory (actions, state); -- cgit v1.2.3