summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'Swiften/QA')
-rw-r--r--Swiften/QA/ClientTest/ClientTest.cpp4
-rw-r--r--Swiften/QA/NetworkTest/BoostConnectionTest.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/Swiften/QA/ClientTest/ClientTest.cpp b/Swiften/QA/ClientTest/ClientTest.cpp
index 01b9647..b628a8d 100644
--- a/Swiften/QA/ClientTest/ClientTest.cpp
+++ b/Swiften/QA/ClientTest/ClientTest.cpp
@@ -45,8 +45,8 @@ int main(int, char**) {
{
boost::shared_ptr<Timer> timer(new Timer(10000));
- timer.onTick.connect(boost::bind(&SimpleEventLoop::stop, &eventLoop));
- timer.start();
+ timer->onTick.connect(boost::bind(&SimpleEventLoop::stop, &eventLoop));
+ timer->start();
eventLoop.run();
}
diff --git a/Swiften/QA/NetworkTest/BoostConnectionTest.cpp b/Swiften/QA/NetworkTest/BoostConnectionTest.cpp
index d29739e..e38b895 100644
--- a/Swiften/QA/NetworkTest/BoostConnectionTest.cpp
+++ b/Swiften/QA/NetworkTest/BoostConnectionTest.cpp
@@ -20,13 +20,13 @@ class BoostConnectionTest : public CppUnit::TestFixture {
BoostConnectionTest() {}
void setUp() {
- eventLoop_ = new DummyEventLoop();
boostIOServiceThread_ = new BoostIOServiceThread();
+ eventLoop_ = new DummyEventLoop();
}
void tearDown() {
- delete boostIOServiceThread_;
delete eventLoop_;
+ delete boostIOServiceThread_;
}
void testDestructor() {