aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-03-10 16:13:05 -0500
committerTed Gould <ted@gould.cx>2015-03-10 16:13:05 -0500
commita3f4a0b948bb282ca016206becb290d0e7656f80 (patch)
tree1d4f4e072d0ead2b3e29fbf48c3d0fbac7b421ee /tests
parentcb7a4808f31fa347d39f7fd7f9a1687e45fd9196 (diff)
downloadayatana-indicator-messages-a3f4a0b948bb282ca016206becb290d0e7656f80.tar.gz
ayatana-indicator-messages-a3f4a0b948bb282ca016206becb290d0e7656f80.tar.bz2
ayatana-indicator-messages-a3f4a0b948bb282ca016206becb290d0e7656f80.zip
Remove useless for_each call
Diffstat (limited to 'tests')
-rw-r--r--tests/indicator-fixture.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/indicator-fixture.h b/tests/indicator-fixture.h
index 75a49cd..e2c4316 100644
--- a/tests/indicator-fixture.h
+++ b/tests/indicator-fixture.h
@@ -70,13 +70,13 @@ class IndicatorFixture : public ::testing::Test
dbus_test_task_set_name(_test_dummy, "Dummy");
dbus_test_service_add_task(_session_service, _test_dummy);
- std::for_each(mocks.begin(), mocks.end(), [this](std::shared_ptr<DbusTestTask> task) {
+ for(auto task : mocks) {
if (dbus_test_task_get_bus(task.get()) == DBUS_TEST_SERVICE_BUS_SYSTEM) {
dbus_test_service_add_task(_system_service, task.get());
} else {
dbus_test_service_add_task(_session_service, task.get());
}
- });
+ }
g_debug("Starting System Bus");
dbus_test_service_start_tasks(_system_service);