diff options
author | dolphin <dolphin@lindenlab.com> | 2014-03-17 16:00:41 -0700 |
---|---|---|
committer | dolphin <dolphin@lindenlab.com> | 2014-03-17 16:00:41 -0700 |
commit | 2604b3419657cb3bb8bafb90b1d9e5e43f11db4d (patch) | |
tree | f75dd1cac4c2f32f31c131e717773da85e6b3463 /indra/newview/llfloaterreporter.cpp | |
parent | 74dcc04e69b845e62d25e83b615399f8a5d26d21 (diff) |
Updated experience cache to get a const reference to xp data
Diffstat (limited to 'indra/newview/llfloaterreporter.cpp')
-rwxr-xr-x | indra/newview/llfloaterreporter.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/indra/newview/llfloaterreporter.cpp b/indra/newview/llfloaterreporter.cpp index 1b9fc8c6d0..a58e2a4791 100755 --- a/indra/newview/llfloaterreporter.cpp +++ b/indra/newview/llfloaterreporter.cpp @@ -234,9 +234,11 @@ void LLFloaterReporter::getExperienceInfo(const LLUUID& experience_id) if (LLUUID::null != mExperienceID) { - LLSD experience; - stringstream desc; - if(LLExperienceCache::get(mExperienceID, experience)){ + const LLSD& experience = LLExperienceCache::get(mExperienceID); + std::stringstream desc; + + if(experience.isDefined()) + { setFromAvatarID(experience[LLExperienceCache::AGENT_ID]); desc << "\nExperience id: " << mExperienceID; } |