aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llcallingcard.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2010-10-02 01:07:17 -0700
committerMcCabe Maxsted2010-10-02 01:07:17 -0700
commit84330405552e869501b68a39df3900814798cd78 (patch)
tree789a88a209cff2e663d289dc8fa4dd7c27846473 /linden/indra/newview/llcallingcard.cpp
parentMerge remote branch 'elektra/weekly' into weekly (diff)
parentfix: Bug #413 1.3 Logout: crash when cancelling currency purchase (diff)
downloadmeta-impy-84330405552e869501b68a39df3900814798cd78.zip
meta-impy-84330405552e869501b68a39df3900814798cd78.tar.gz
meta-impy-84330405552e869501b68a39df3900814798cd78.tar.bz2
meta-impy-84330405552e869501b68a39df3900814798cd78.tar.xz
Merge remote branch 'armin/weekly' into weekly
Diffstat (limited to 'linden/indra/newview/llcallingcard.cpp')
-rw-r--r--linden/indra/newview/llcallingcard.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/linden/indra/newview/llcallingcard.cpp b/linden/indra/newview/llcallingcard.cpp
index 155fb60..15be0eb 100644
--- a/linden/indra/newview/llcallingcard.cpp
+++ b/linden/indra/newview/llcallingcard.cpp
@@ -137,8 +137,20 @@ LLAvatarTracker::~LLAvatarTracker()
137 deleteTrackingData(); 137 deleteTrackingData();
138 std::for_each(mObservers.begin(), mObservers.end(), DeletePointer()); 138 std::for_each(mObservers.begin(), mObservers.end(), DeletePointer());
139 std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer()); 139 std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer());
140 mObservers.erase(mObservers.begin(), mObservers.end());
141 mBuddyInfo.erase(mBuddyInfo.begin(), mBuddyInfo.end());
140} 142}
141 143
144
145void LLAvatarTracker::reset()
146{
147 std::for_each(mBuddyInfo.begin(), mBuddyInfo.end(), DeletePairedPointer());
148 mBuddyInfo.erase(mBuddyInfo.begin(), mBuddyInfo.end());
149 mModifyMask |= LLFriendObserver::REMOVE;
150 notifyObservers();
151}
152
153
142void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name) 154void LLAvatarTracker::track(const LLUUID& avatar_id, const std::string& name)
143{ 155{
144 deleteTrackingData(); 156 deleteTrackingData();