aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llnameeditor.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/newview/llnameeditor.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/newview/llnameeditor.cpp')
-rw-r--r--linden/indra/newview/llnameeditor.cpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/linden/indra/newview/llnameeditor.cpp b/linden/indra/newview/llnameeditor.cpp
index aeb4a36..2ba25c3 100644
--- a/linden/indra/newview/llnameeditor.cpp
+++ b/linden/indra/newview/llnameeditor.cpp
@@ -90,23 +90,15 @@ void LLNameEditor::setNameID(const LLUUID& name_id, BOOL is_group)
90{ 90{
91 mNameID = name_id; 91 mNameID = name_id;
92 92
93 char first[DB_FIRST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/ 93 std::string name;
94 char last[DB_LAST_NAME_BUF_SIZE]; /*Flawfinder: ignore*/
95 char group_name[DB_GROUP_NAME_BUF_SIZE]; /*Flawfinder: ignore*/
96 LLString name;
97 94
98 if (!is_group) 95 if (!is_group)
99 { 96 {
100 gCacheName->getName(name_id, first, last); 97 gCacheName->getFullName(name_id, name);
101
102 name.assign(first);
103 name.append(1, ' ');
104 name.append(last);
105 } 98 }
106 else 99 else
107 { 100 {
108 gCacheName->getGroupName(name_id, group_name); 101 gCacheName->getGroupName(name_id, name);
109 name.assign(group_name);
110 } 102 }
111 103
112 setText(name); 104 setText(name);