summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin Smith <git@kismith.co.uk>2010-10-23 19:09:54 (GMT)
committerKevin Smith <git@kismith.co.uk>2010-10-23 19:09:54 (GMT)
commit5dcea6769d7ad61282edbf19481cd25b676383f6 (patch)
tree6b73743b2451429318854b09786ebc28ffb9a4fb /Swiften/Roster
parent8f19138b9543983a3292d6de9659674709e26d00 (diff)
downloadswift-5dcea6769d7ad61282edbf19481cd25b676383f6.zip
swift-5dcea6769d7ad61282edbf19481cd25b676383f6.tar.bz2
Make sure presence isn't type error before updating roster.
Resolves: #622 Release-Notes: Errors received from your contacts when setting your status will no longer cause the contacts to mirror your new status.
Diffstat (limited to 'Swiften/Roster')
-rw-r--r--Swiften/Roster/SetPresence.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Swiften/Roster/SetPresence.h b/Swiften/Roster/SetPresence.h
index 9bbf326..e710931 100644
--- a/Swiften/Roster/SetPresence.h
+++ b/Swiften/Roster/SetPresence.h
@@ -17,7 +17,7 @@ class RosterItem;
class SetPresence : public RosterItemOperation {
public:
- SetPresence(boost::shared_ptr<Presence> presence, JID::CompareType compareType = JID::WithoutResource) : RosterItemOperation(true, compareType == JID::WithoutResource ? presence->getFrom().toBare() : presence->getFrom()), presence_(presence), compareType_(compareType) {
+ SetPresence(Presence::ref presence, JID::CompareType compareType = JID::WithoutResource) : RosterItemOperation(true, compareType == JID::WithoutResource ? presence->getFrom().toBare() : presence->getFrom()), presence_(presence), compareType_(compareType) {
}
virtual void operator() (RosterItem* item) const {
@@ -28,7 +28,7 @@ class SetPresence : public RosterItemOperation {
}
private:
- boost::shared_ptr<Presence> presence_;
+ Presence::ref presence_;
JID::CompareType compareType_;
};