summaryrefslogtreecommitdiff
path: root/indra/llui/llscrolllistctrl.cpp
diff options
context:
space:
mode:
authorKelly Washington <kelly@lindenlab.com>2012-11-12 14:16:45 -0800
committerKelly Washington <kelly@lindenlab.com>2012-11-12 14:16:45 -0800
commitfc93c80e87ab6067b2be10ed2ae69dcd988cc7a3 (patch)
tree7c584447f0bce56378d230be641c0e6f4923f4a3 /indra/llui/llscrolllistctrl.cpp
parent014edb89e82ef55363c39dd80a6076612db20123 (diff)
MAINT-1897 Poor performance viewing large group member lists
* LLScrollListControl to use LLAvatarNameCache instead of gCacheName
Diffstat (limited to 'indra/llui/llscrolllistctrl.cpp')
-rw-r--r--indra/llui/llscrolllistctrl.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/llscrolllistctrl.cpp b/indra/llui/llscrolllistctrl.cpp
index b3499693dd..da371622be 100644
--- a/indra/llui/llscrolllistctrl.cpp
+++ b/indra/llui/llscrolllistctrl.cpp
@@ -35,6 +35,7 @@
#include "llboost.h"
//#include "indra_constants.h"
+#include "llavatarnamecache.h"
#include "llcheckboxctrl.h"
#include "llclipboard.h"
#include "llfocusmgr.h"
@@ -1805,7 +1806,9 @@ void LLScrollListCtrl::copyNameToClipboard(std::string id, bool is_group)
}
else
{
- gCacheName->getFullName(LLUUID(id), name);
+ LLAvatarName av_name;
+ LLAvatarNameCache::get(LLUUID(id), &av_name);
+ name = av_name.getLegacyName();
}
LLUrlAction::copyURLToClipboard(name);
}