Fix a potential bug in LLSpeakerMgr wherein speakers would not be added to group chat participant lists in LOTE

Also clean up (static) translated constants for group_member_statuses
This commit is contained in:
Inusaito Sayori
2015-03-04 22:27:27 -05:00
parent 36b8d3f9c9
commit e8dd91f98d
3 changed files with 21 additions and 13 deletions

View File

@@ -51,7 +51,6 @@
#include "lltabcontainer.h"
#include "lltextbox.h"
#include "lltexteditor.h"
#include "lltrans.h"
#include "llviewertexturelist.h"
#include "llviewerwindow.h"
#include "llfocusmgr.h"
@@ -1670,10 +1669,9 @@ void LLPanelGroupMembersSubTab::update(LLGroupChange gc)
bool is_online_status_string(const std::string& status)
{
static const std::string online(LLTrans::getString("group_member_status_online"));
if (status == online) return true;
static const std::string unknown(LLTrans::getString("group_member_status_unknown"));
return status == unknown;
const std::string& localized_online();
const std::string& localized_unknown();
return status == localized_online() || status == localized_unknown();
}
void LLPanelGroupMembersSubTab::addMemberToList(LLGroupMemberData* data)