summaryrefslogtreecommitdiff
path: root/indra/newview/llnameeditor.cpp
diff options
context:
space:
mode:
authorOz Linden <oz@lindenlab.com>2010-10-15 16:35:39 -0400
committerOz Linden <oz@lindenlab.com>2010-10-15 16:35:39 -0400
commit068e3cc469793c75b0d54ef0864388582bb3b63c (patch)
treedbab152cf43bc84f23b2f63f9e8f8d83117e28af /indra/newview/llnameeditor.cpp
parente748167abfabbc541c3ceb9e2d5a46fa3564f15a (diff)
parent8158c5637a9ad83a7b36b104116c37390b57c7ab (diff)
pull fix for STORM-304 / STORM-386
Diffstat (limited to 'indra/newview/llnameeditor.cpp')
-rw-r--r--indra/newview/llnameeditor.cpp19
1 files changed, 4 insertions, 15 deletions
diff --git a/indra/newview/llnameeditor.cpp b/indra/newview/llnameeditor.cpp
index f53252b614..b3b1ff7c06 100644
--- a/indra/newview/llnameeditor.cpp
+++ b/indra/newview/llnameeditor.cpp
@@ -75,26 +75,15 @@ void LLNameEditor::setNameID(const LLUUID& name_id, BOOL is_group)
setText(name);
}
-void LLNameEditor::refresh(const LLUUID& id, const std::string& firstname,
- const std::string& lastname, BOOL is_group)
+void LLNameEditor::refresh(const LLUUID& id, const std::string& full_name, bool is_group)
{
if (id == mNameID)
{
- std::string name;
- if (!is_group)
- {
- name = firstname + " " + lastname;
- }
- else
- {
- name = firstname;
- }
- setText(name);
+ setText(full_name);
}
}
-void LLNameEditor::refreshAll(const LLUUID& id, const std::string& firstname,
- const std::string& lastname, BOOL is_group)
+void LLNameEditor::refreshAll(const LLUUID& id, const std::string& full_name, bool is_group)
{
std::set<LLNameEditor*>::iterator it;
for (it = LLNameEditor::sInstances.begin();
@@ -102,7 +91,7 @@ void LLNameEditor::refreshAll(const LLUUID& id, const std::string& firstname,
++it)
{
LLNameEditor* box = *it;
- box->refresh(id, firstname, lastname, is_group);
+ box->refresh(id, full_name, is_group);
}
}