diff options
author | Remko Tronçon <git@el-tramo.be> | 2011-05-23 18:57:05 (GMT) |
---|---|---|
committer | Remko Tronçon <git@el-tramo.be> | 2011-05-23 18:57:05 (GMT) |
commit | 3f72e2c3b7ce5a83287dc136c68b7ef6d2cc66bd (patch) | |
tree | 8afd8cdb41d3b35d2cf43afda5b9825ce75d8e72 /Swift/Controllers/Roster/RosterController.cpp | |
parent | d917be7e1f7e4c99c2d8d20cc3e54d7b6e61f333 (diff) | |
download | swift-contrib-3f72e2c3b7ce5a83287dc136c68b7ef6d2cc66bd.zip swift-contrib-3f72e2c3b7ce5a83287dc136c68b7ef6d2cc66bd.tar.bz2 |
Fixed const references to vectors.
This could potentially cause crashes (same as a previous patch).
Diffstat (limited to 'Swift/Controllers/Roster/RosterController.cpp')
-rw-r--r-- | Swift/Controllers/Roster/RosterController.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Swift/Controllers/Roster/RosterController.cpp b/Swift/Controllers/Roster/RosterController.cpp index 706f50a..5b61abf 100644 --- a/Swift/Controllers/Roster/RosterController.cpp +++ b/Swift/Controllers/Roster/RosterController.cpp @@ -142,7 +142,7 @@ void RosterController::handleOnJIDRemoved(const JID& jid) { roster_->removeContact(jid); } -void RosterController::handleOnJIDUpdated(const JID& jid, const std::string& oldName, const std::vector<std::string> passedOldGroups) { +void RosterController::handleOnJIDUpdated(const JID& jid, const std::string& oldName, const std::vector<std::string>& passedOldGroups) { if (oldName != xmppRoster_->getNameForJID(jid)) { roster_->applyOnItems(SetName(nickResolver_->jidToNick(jid), jid)); } |