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/ChatsManager.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/ChatsManager.cpp')
-rw-r--r--Swift/Controllers/ChatsManager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/ChatsManager.cpp b/Swift/Controllers/ChatsManager.cpp
index fe8efb3..2863a14 100644
--- a/Swift/Controllers/ChatsManager.cpp
+++ b/Swift/Controllers/ChatsManager.cpp
@@ -41,7 +41,7 @@ ChatsManager::~ChatsManager() {
/**
* If a resource goes offline, release bound chatdialog to that resource.
*/
-void ChatsManager::handlePresenceChange(boost::shared_ptr<Presence> /*oldPresence*/, boost::shared_ptr<Presence> newPresence) {
+void ChatsManager::handlePresenceChange(boost::shared_ptr<Presence> newPresence, boost::shared_ptr<Presence> /*lastPresence*/) {
if (newPresence->getType() != Presence::Unavailable) return;
JID fullJID(newPresence->getFrom());
std::map<JID, ChatController*>::iterator it = chatControllers_.find(fullJID);