diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llnameeditor.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/linden/indra/newview/llnameeditor.cpp b/linden/indra/newview/llnameeditor.cpp index 99f9ee7..5557f84 100644 --- a/linden/indra/newview/llnameeditor.cpp +++ b/linden/indra/newview/llnameeditor.cpp | |||
@@ -58,7 +58,7 @@ LLNameEditor::LLNameEditor(const std::string& name, const LLRect& rect, | |||
58 | void* userdata, | 58 | void* userdata, |
59 | LLLinePrevalidateFunc prevalidate_func) | 59 | LLLinePrevalidateFunc prevalidate_func) |
60 | : LLLineEditor(name, rect, | 60 | : LLLineEditor(name, rect, |
61 | "(retrieving)", | 61 | std::string("(retrieving)"), |
62 | glfont, | 62 | glfont, |
63 | max_text_length, | 63 | max_text_length, |
64 | commit_callback, | 64 | commit_callback, |
@@ -99,26 +99,26 @@ void LLNameEditor::setNameID(const LLUUID& name_id, BOOL is_group) | |||
99 | setText(name); | 99 | setText(name); |
100 | } | 100 | } |
101 | 101 | ||
102 | void LLNameEditor::refresh(const LLUUID& id, const char* firstname, | 102 | void LLNameEditor::refresh(const LLUUID& id, const std::string& firstname, |
103 | const char* lastname, BOOL is_group) | 103 | const std::string& lastname, BOOL is_group) |
104 | { | 104 | { |
105 | if (id == mNameID) | 105 | if (id == mNameID) |
106 | { | 106 | { |
107 | LLString name; | 107 | std::string name; |
108 | |||
109 | name.assign(firstname); | ||
110 | if (!is_group) | 108 | if (!is_group) |
111 | { | 109 | { |
112 | name.append(1, ' '); | 110 | name = firstname + " " + lastname; |
113 | name.append(lastname); | 111 | } |
112 | else | ||
113 | { | ||
114 | name = firstname; | ||
114 | } | 115 | } |
115 | |||
116 | setText(name); | 116 | setText(name); |
117 | } | 117 | } |
118 | } | 118 | } |
119 | 119 | ||
120 | void LLNameEditor::refreshAll(const LLUUID& id, const char* firstname, | 120 | void LLNameEditor::refreshAll(const LLUUID& id, const std::string& firstname, |
121 | const char* lastname, BOOL is_group) | 121 | const std::string& lastname, BOOL is_group) |
122 | { | 122 | { |
123 | std::set<LLNameEditor*>::iterator it; | 123 | std::set<LLNameEditor*>::iterator it; |
124 | for (it = LLNameEditor::sInstances.begin(); | 124 | for (it = LLNameEditor::sInstances.begin(); |
@@ -142,7 +142,7 @@ LLSD LLNameEditor::getValue() const | |||
142 | 142 | ||
143 | LLView* LLNameEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) | 143 | LLView* LLNameEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory) |
144 | { | 144 | { |
145 | LLString name("name_editor"); | 145 | std::string name("name_editor"); |
146 | node->getAttributeString("name", name); | 146 | node->getAttributeString("name", name); |
147 | 147 | ||
148 | LLRect rect; | 148 | LLRect rect; |
@@ -162,7 +162,7 @@ LLView* LLNameEditor::fromXML(LLXMLNodePtr node, LLView *parent, LLUICtrlFactory | |||
162 | max_text_length, | 162 | max_text_length, |
163 | commit_callback); | 163 | commit_callback); |
164 | 164 | ||
165 | LLString label; | 165 | std::string label; |
166 | if(node->getAttributeString("label", label)) | 166 | if(node->getAttributeString("label", label)) |
167 | { | 167 | { |
168 | line_editor->setLabel(label); | 168 | line_editor->setLabel(label); |