diff options
author | Vadim Savchuk <vsavchuk@productengine.com> | 2009-12-25 20:47:42 +0200 |
---|---|---|
committer | Vadim Savchuk <vsavchuk@productengine.com> | 2009-12-25 20:47:42 +0200 |
commit | 614a214870e223ea187bda32169a1859380844d3 (patch) | |
tree | 6b60aa4b128aaf74cdeeba368b166d899506a087 /indra/newview/llavatarlist.cpp | |
parent | 87aad0fe2177ab863704e5432435a0657277fb92 (diff) | |
parent | 38742b462a222cf97d67b2f2e866d225a4000c1d (diff) |
merge
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llavatarlist.cpp')
-rw-r--r-- | indra/newview/llavatarlist.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/newview/llavatarlist.cpp b/indra/newview/llavatarlist.cpp index 5317cf2cd0..b3ef6464f6 100644 --- a/indra/newview/llavatarlist.cpp +++ b/indra/newview/llavatarlist.cpp @@ -51,6 +51,12 @@ static const F32 LIT_UPDATE_PERIOD = 5; // Used to limit time spent for avatar list update per frame. static const unsigned ADD_LIMIT = 50; +bool LLAvatarList::contains(const LLUUID& id) +{ + const uuid_vector_t& ids = getIDs(); + return std::find(ids.begin(), ids.end(), id) != ids.end(); +} + void LLAvatarList::toggleIcons() { // Save the new value for new items to use. |