diff options
author | Jacek Antonelli | 2008-09-06 18:24:57 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-06 18:25:07 -0500 |
commit | 798d367d54a6c6379ad355bd8345fa40e31e7fe9 (patch) | |
tree | 1921f1708cd0240648c97bc02df2c2ab5f2fc41e /linden/indra/newview/llnamebox.cpp | |
parent | Second Life viewer sources 1.20.15 (diff) | |
download | meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.zip meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.gz meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.bz2 meta-impy-798d367d54a6c6379ad355bd8345fa40e31e7fe9.tar.xz |
Second Life viewer sources 1.21.0-RC
Diffstat (limited to 'linden/indra/newview/llnamebox.cpp')
-rw-r--r-- | linden/indra/newview/llnamebox.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/linden/indra/newview/llnamebox.cpp b/linden/indra/newview/llnamebox.cpp index 5a164b4..d178c5a 100644 --- a/linden/indra/newview/llnamebox.cpp +++ b/linden/indra/newview/llnamebox.cpp | |||
@@ -47,7 +47,7 @@ std::set<LLNameBox*> LLNameBox::sInstances; | |||
47 | 47 | ||
48 | 48 | ||
49 | LLNameBox::LLNameBox(const std::string& name, const LLRect& rect, const LLUUID& name_id, BOOL is_group, const LLFontGL* font, BOOL mouse_opaque) | 49 | LLNameBox::LLNameBox(const std::string& name, const LLRect& rect, const LLUUID& name_id, BOOL is_group, const LLFontGL* font, BOOL mouse_opaque) |
50 | : LLTextBox(name, rect, "(retrieving)", font, mouse_opaque), | 50 | : LLTextBox(name, rect, std::string("(retrieving)"), font, mouse_opaque), |
51 | mNameID(name_id) | 51 | mNameID(name_id) |
52 | { | 52 | { |
53 | LLNameBox::sInstances.insert(this); | 53 | LLNameBox::sInstances.insert(this); |
@@ -57,7 +57,7 @@ LLNameBox::LLNameBox(const std::string& name, const LLRect& rect, const LLUUID& | |||
57 | } | 57 | } |
58 | else | 58 | else |
59 | { | 59 | { |
60 | setText(LLString::null); | 60 | setText(LLStringUtil::null); |
61 | } | 61 | } |
62 | } | 62 | } |
63 | 63 | ||
@@ -84,26 +84,26 @@ void LLNameBox::setNameID(const LLUUID& name_id, BOOL is_group) | |||
84 | setText(name); | 84 | setText(name); |
85 | } | 85 | } |
86 | 86 | ||
87 | void LLNameBox::refresh(const LLUUID& id, const char* firstname, | 87 | void LLNameBox::refresh(const LLUUID& id, const std::string& firstname, |
88 | const char* lastname, BOOL is_group) | 88 | const std::string& lastname, BOOL is_group) |
89 | { | 89 | { |
90 | if (id == mNameID) | 90 | if (id == mNameID) |
91 | { | 91 | { |
92 | LLString name; | 92 | std::string name; |
93 | |||
94 | name.assign(firstname); | ||
95 | if (!is_group) | 93 | if (!is_group) |
96 | { | 94 | { |
97 | name.append(1, ' '); | 95 | name = firstname + " " + lastname; |
98 | name.append(lastname); | 96 | } |
97 | else | ||
98 | { | ||
99 | name = firstname; | ||
99 | } | 100 | } |
100 | |||
101 | setText(name); | 101 | setText(name); |
102 | } | 102 | } |
103 | } | 103 | } |
104 | 104 | ||
105 | void LLNameBox::refreshAll(const LLUUID& id, const char* firstname, | 105 | void LLNameBox::refreshAll(const LLUUID& id, const std::string& firstname, |
106 | const char* lastname, BOOL is_group) | 106 | const std::string& lastname, BOOL is_group) |
107 | { | 107 | { |
108 | std::set<LLNameBox*>::iterator it; | 108 | std::set<LLNameBox*>::iterator it; |
109 | for (it = LLNameBox::sInstances.begin(); | 109 | for (it = LLNameBox::sInstances.begin(); |