summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2009-12-26 23:00:53 (GMT)
committerKevin Smith <git@kismith.co.uk>2009-12-26 23:00:53 (GMT)
commit4d89c280976426c9e29ee9235b296afc4d38a7cd (patch)
tree5175891eebfc5cc05e64dc5e92ab5a1befcc85a2 /Swift/Controllers/UnitTest/ChatsManagerTest.cpp
parentc3bda61b09597a7944fbc382366bcdf998540e82 (diff)
downloadswift-contrib-4d89c280976426c9e29ee9235b296afc4d38a7cd.zip
swift-contrib-4d89c280976426c9e29ee9235b296afc4d38a7cd.tar.bz2
Fix segfault at launch due to argument reversal.
Diffstat (limited to 'Swift/Controllers/UnitTest/ChatsManagerTest.cpp')
-rw-r--r--Swift/Controllers/UnitTest/ChatsManagerTest.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Swift/Controllers/UnitTest/ChatsManagerTest.cpp b/Swift/Controllers/UnitTest/ChatsManagerTest.cpp
index 9df244f..0dfc52b 100644
--- a/Swift/Controllers/UnitTest/ChatsManagerTest.cpp
+++ b/Swift/Controllers/UnitTest/ChatsManagerTest.cpp
@@ -176,7 +176,7 @@ public:
boost::shared_ptr<Presence> jid1Offline(new Presence());
jid1Offline->setFrom(JID(fullJIDString1));
jid1Offline->setType(Presence::Unavailable);
- presenceOracle_->onPresenceChange(jid1Online, jid1Offline);
+ presenceOracle_->onPresenceChange(jid1Offline, jid1Online);
boost::shared_ptr<Message> message2(new Message());
message2->setFrom(JID(fullJIDString2));
@@ -221,14 +221,14 @@ public:
boost::shared_ptr<Presence> jid1Offline(new Presence());
jid1Offline->setFrom(JID(messageJID1));
jid1Offline->setType(Presence::Unavailable);
- presenceOracle_->onPresenceChange(jid1Online, jid1Offline);
+ presenceOracle_->onPresenceChange(jid1Offline, jid1Online);
boost::shared_ptr<Presence> jid2Online(new Presence());
jid2Online->setFrom(JID(messageJID2));
boost::shared_ptr<Presence> jid2Offline(new Presence());
jid2Offline->setFrom(JID(messageJID2));
jid2Offline->setType(Presence::Unavailable);
- presenceOracle_->onPresenceChange(jid2Online, jid2Offline);
+ presenceOracle_->onPresenceChange(jid2Offline, jid2Online);
JID messageJID3("testling@test.com/resource3");