From accd69386aa0e1194bdf0022a4a51677b1999d01 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Liru=20F=C3=A6rs?= Date: Mon, 14 Oct 2019 22:00:25 -0400 Subject: [PATCH] Small opt for null ids on name lists --- indra/newview/llnamelistctrl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indra/newview/llnamelistctrl.cpp b/indra/newview/llnamelistctrl.cpp index 1e5b950ce..cf9e47390 100644 --- a/indra/newview/llnamelistctrl.cpp +++ b/indra/newview/llnamelistctrl.cpp @@ -217,7 +217,8 @@ LLScrollListItem* LLNameListCtrl::addNameItemRow( LLAvatarName av_name; if (id.isNull()) { - fullname = LLTrans::getString("AvatarNameNobody"); + static const auto nobody = LLTrans::getString("AvatarNameNobody"); + fullname = nobody; } else if (LLAvatarNameCache::get(id, &av_name)) {