diff options
Diffstat (limited to 'indra/newview/llagentui.cpp')
-rw-r--r-- | indra/newview/llagentui.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/indra/newview/llagentui.cpp b/indra/newview/llagentui.cpp index 15d9f36b74..c4597ad6f8 100644 --- a/indra/newview/llagentui.cpp +++ b/indra/newview/llagentui.cpp @@ -76,15 +76,16 @@ void LLAgentUI::buildFullname(std::string& name) } //static -void LLAgentUI::buildSLURL(LLSLURL& slurl, const bool escaped /*= true*/) +std::string LLAgentUI::buildSLURL(const bool escaped /*= true*/) { - LLSLURL return_slurl; - LLViewerRegion *regionp = gAgent.getRegion(); - if (regionp) - { - return_slurl = LLSLURL(regionp->getName(), gAgent.getPositionGlobal()); - } - slurl = return_slurl; + std::string slurl; + LLViewerRegion *regionp = gAgent.getRegion(); + if (regionp) + { + LLVector3d agentPos = gAgent.getPositionGlobal(); + slurl = LLSLURL::buildSLURLfromPosGlobal(regionp->getName(), agentPos, escaped); + } + return slurl; } //static |