diff options
author | Oz Linden <oz@lindenlab.com> | 2017-04-19 16:27:38 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2017-04-19 16:27:38 -0400 |
commit | 1b032c37833be3a03170a28b1955c55061936442 (patch) | |
tree | f4500e347b6f18eeafe61217c4a9f884a8ebea34 /indra/newview/llspeakers.cpp | |
parent | e07a60f6cc80d052377996b8c3ef9a9a20e20584 (diff) | |
parent | f62b5503285d828813d87779fa0658ee5f122ac5 (diff) |
merge changes for 5.0.4-release
Diffstat (limited to 'indra/newview/llspeakers.cpp')
-rw-r--r-- | indra/newview/llspeakers.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/indra/newview/llspeakers.cpp b/indra/newview/llspeakers.cpp index e7971028bf..19d1af34f9 100644 --- a/indra/newview/llspeakers.cpp +++ b/indra/newview/llspeakers.cpp @@ -29,6 +29,7 @@ #include "llspeakers.h" #include "llagent.h" +#include "llavatarnamecache.h" #include "llappviewer.h" #include "llimview.h" #include "llgroupmgr.h" @@ -75,13 +76,13 @@ void LLSpeaker::lookupName() { if (mDisplayName.empty()) { - gCacheName->get(mID, false, boost::bind(&LLSpeaker::onNameCache, this, _1, _2, _3)); + LLAvatarNameCache::get(mID, boost::bind(&LLSpeaker::onNameCache, this, _1, _2)); // todo: can be group??? } } -void LLSpeaker::onNameCache(const LLUUID& id, const std::string& full_name, bool is_group) +void LLSpeaker::onNameCache(const LLUUID& id, const LLAvatarName& av_name) { - mDisplayName = full_name; + mDisplayName = av_name.getUserName(); } bool LLSpeaker::isInVoiceChannel() |