[NameUI] Remove pointless is_group check in refresh

This commit is contained in:
Liru Færs
2020-01-06 07:40:48 -05:00
parent a870534ea0
commit af2ae76ca2
3 changed files with 6 additions and 7 deletions

View File

@@ -123,7 +123,7 @@ void LLNameUI::setNameText()
setText(got_name ? name : mInitialValue);
}
void LLNameUI::refresh(const LLUUID& id, const std::string& full_name, bool is_group)
void LLNameUI::refresh(const LLUUID& id, const std::string& full_name)
{
if (id == mNameID)
{
@@ -131,12 +131,11 @@ void LLNameUI::refresh(const LLUUID& id, const std::string& full_name, bool is_g
}
}
void LLNameUI::refreshAll(const LLUUID& id, const std::string& full_name, bool is_group)
void LLNameUI::refreshAll(const LLUUID& id, const std::string& full_name)
{
if (!is_group) return;
for (auto box : sInstances)
{
box->refresh(id, full_name, is_group);
box->refresh(id, full_name);
}
}