summaryrefslogtreecommitdiff
path: root/indra/llui
diff options
context:
space:
mode:
authordolphin <dolphin@lindenlab.com>2014-03-17 15:57:15 -0700
committerdolphin <dolphin@lindenlab.com>2014-03-17 15:57:15 -0700
commit74dcc04e69b845e62d25e83b615399f8a5d26d21 (patch)
tree7b951b6c770cb41d4f5787f92d828cf5e5b86bd5 /indra/llui
parente10ae3ba960cf030582378c454937dd326fcd436 (diff)
Updated experience cache to get a const reference to xp data
Diffstat (limited to 'indra/llui')
-rwxr-xr-xindra/llui/llurlentry.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llurlentry.cpp b/indra/llui/llurlentry.cpp
index f5baf17d8f..0af2cd42aa 100755
--- a/indra/llui/llurlentry.cpp
+++ b/indra/llui/llurlentry.cpp
@@ -1231,8 +1231,8 @@ std::string LLUrlEntryExperienceProfile::getLabel( const std::string &url, const
return LLTrans::getString("ExperienceNameNull");
}
- LLSD experience_details;
- if(LLExperienceCache::get(experience_id, experience_details))
+ const LLSD& experience_details = LLExperienceCache::get(experience_id);
+ if(!experience_details.isUndefined())
{
return experience_details[LLExperienceCache::NAME].asString();
}