From a5bdc24a148a3a844db5f05402c2f941c6f3fde1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Wed, 8 Jan 2020 19:46:22 -0500 Subject: [PATCH] Refactor get_slurl_for --- indra/newview/llviewermenu.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/indra/newview/llviewermenu.cpp b/indra/newview/llviewermenu.cpp index f378d932a..4778b23cd 100644 --- a/indra/newview/llviewermenu.cpp +++ b/indra/newview/llviewermenu.cpp @@ -9043,7 +9043,12 @@ template T* get_focused() const std::string get_slurl_for(const LLUUID& id, const LFIDBearer::Type& type) { - return type == LFIDBearer::GROUP ? LLGroupActions::getSLURL(id) : LLAvatarActions::getSLURL(id); + switch (type) + { + case LFIDBearer::GROUP: return LLGroupActions::getSLURL(id); + case LFIDBearer::AVATAR: return LLAvatarActions::getSLURL(id); + default: return LLStringUtil::null; + } } const LLWString get_wslurl_for(const LLUUID& id, const LFIDBearer::Type& type)