diff options
author | Oz Linden <oz@lindenlab.com> | 2010-10-15 16:41:30 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2010-10-15 16:41:30 -0400 |
commit | ba2300b8aeff30a64d3f34b0cd5c49aa890e0639 (patch) | |
tree | d7a7f4aa61d1b2bd28374e5c61f3d6730d450574 /indra/newview/llnamebox.cpp | |
parent | a8b5da9a70936923e650bd5c200276da49106784 (diff) | |
parent | 18321756297bd9b04a4204abe4fbb0e3e8112186 (diff) |
pull fix for STORM-211
Diffstat (limited to 'indra/newview/llnamebox.cpp')
-rw-r--r-- | indra/newview/llnamebox.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/indra/newview/llnamebox.cpp b/indra/newview/llnamebox.cpp index c31da84f78..1099316a19 100644 --- a/indra/newview/llnamebox.cpp +++ b/indra/newview/llnamebox.cpp @@ -82,26 +82,15 @@ void LLNameBox::setNameID(const LLUUID& name_id, BOOL is_group) setText(mInitialValue); } -void LLNameBox::refresh(const LLUUID& id, const std::string& firstname, - const std::string& lastname, BOOL is_group) +void LLNameBox::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; - } - setName(name, is_group); + setName(full_name, is_group); } } -void LLNameBox::refreshAll(const LLUUID& id, const std::string& firstname, - const std::string& lastname, BOOL is_group) +void LLNameBox::refreshAll(const LLUUID& id, const std::string& full_name, bool is_group) { std::set<LLNameBox*>::iterator it; for (it = LLNameBox::sInstances.begin(); @@ -109,7 +98,7 @@ void LLNameBox::refreshAll(const LLUUID& id, const std::string& firstname, ++it) { LLNameBox* box = *it; - box->refresh(id, firstname, lastname, is_group); + box->refresh(id, full_name, is_group); } } |