diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-01-21 18:36:11 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-01-21 18:36:11 (GMT) |
commit | 739e16ab8fa21f22b8ddf827b0979e71bf613e78 (patch) | |
tree | 91bf9bad8e8ade3aa9484fc01dff0221addb4cbe /Swift/Controllers/Chat | |
parent | c632dffabdd3387547bd07cd96754deab47703bc (diff) | |
download | swift-contrib-739e16ab8fa21f22b8ddf827b0979e71bf613e78.zip swift-contrib-739e16ab8fa21f22b8ddf827b0979e71bf613e78.tar.bz2 |
Code cleanup.
Diffstat (limited to 'Swift/Controllers/Chat')
-rw-r--r-- | Swift/Controllers/Chat/MUCSearchController.cpp | 1 | ||||
-rw-r--r-- | Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp | 5 | ||||
-rw-r--r-- | Swift/Controllers/Chat/UnitTest/MUCControllerTest.cpp | 5 |
3 files changed, 3 insertions, 8 deletions
diff --git a/Swift/Controllers/Chat/MUCSearchController.cpp b/Swift/Controllers/Chat/MUCSearchController.cpp index c85f793..0f66163 100644 --- a/Swift/Controllers/Chat/MUCSearchController.cpp +++ b/Swift/Controllers/Chat/MUCSearchController.cpp @@ -64,6 +64,7 @@ void MUCSearchController::addToSavedServices(const JID& jid) { collapsed += "\n"; } collapsed += jidItem.toString(); + ++i; } settings_->storeString(SEARCHED_SERVICES, collapsed); window_->addSavedServices(savedServices_); diff --git a/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp b/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp index be262bc..4d6ca08 100644 --- a/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp +++ b/Swift/Controllers/Chat/UnitTest/ChatsManagerTest.cpp @@ -46,8 +46,7 @@ class DummyCapsProvider : public CapsProvider { DiscoInfo::ref getCaps(const String&) const {return DiscoInfo::ref(new DiscoInfo());} }; -class ChatsManagerTest : public CppUnit::TestFixture -{ +class ChatsManagerTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(ChatsManagerTest); CPPUNIT_TEST(testFirstOpenWindowIncoming); CPPUNIT_TEST(testSecondOpenWindowIncoming); @@ -60,8 +59,6 @@ class ChatsManagerTest : public CppUnit::TestFixture CPPUNIT_TEST_SUITE_END(); public: - ChatsManagerTest() {}; - void setUp() { mocks_ = new MockRepository(); jid_ = JID("test@test.com/resource"); diff --git a/Swift/Controllers/Chat/UnitTest/MUCControllerTest.cpp b/Swift/Controllers/Chat/UnitTest/MUCControllerTest.cpp index 21871cb..62f0ccd 100644 --- a/Swift/Controllers/Chat/UnitTest/MUCControllerTest.cpp +++ b/Swift/Controllers/Chat/UnitTest/MUCControllerTest.cpp @@ -27,8 +27,7 @@ using namespace Swift; -class MUCControllerTest : public CppUnit::TestFixture -{ +class MUCControllerTest : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE(MUCControllerTest); CPPUNIT_TEST(testJoinPartStringContructionSimple); CPPUNIT_TEST(testJoinPartStringContructionMixed); @@ -39,8 +38,6 @@ class MUCControllerTest : public CppUnit::TestFixture CPPUNIT_TEST_SUITE_END(); public: - MUCControllerTest() {}; - void setUp() { self_ = JID("girl@wonderland.lit/rabbithole"); nick_ = "aLiCe"; |