summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llvoiceclient.cpp25
-rw-r--r--indra/newview/llvoiceclient.h15
2 files changed, 24 insertions, 16 deletions
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp
index 4ea4d9c16e..8fe734030f 100644
--- a/indra/newview/llvoiceclient.cpp
+++ b/indra/newview/llvoiceclient.cpp
@@ -527,7 +527,7 @@ void LLVivoxProtocolParser::StartTag(const char *tag, const char **attr)
nameString.clear();
descriptionString.clear();
expirationDateString.clear();
- hasExpired.clear();
+ hasExpired = false;
fontTypeString.clear();
fontStatusString.clear();
}
@@ -7157,13 +7157,21 @@ LLVoiceClient::voiceFontEntry::voiceFontEntry(S32 id) :
{
}
-LLVoiceClient::voiceFontEntry *LLVoiceClient::addSessionFont(const voice_font_id_t &id,
- const std::string &name,
- const std::string &description,
- const std::string &expirationDate,
- const bool hasExpired,
- const std::string &fontType,
- const std::string &fontStatus)
+void LLVoiceClient::clearSessionFonts()
+{
+ // *FIX: Currently set voice font will be invalid
+ mSessionFontsReceived = false;
+ mSessionFontList.clear();
+ mSessionFontMap.clear();
+}
+
+void LLVoiceClient::addSessionFont(const voice_font_id_t &id,
+ const std::string &name,
+ const std::string &description,
+ const std::string &expirationDate,
+ const bool hasExpired,
+ const std::string &fontType,
+ const std::string &fontStatus)
{
voiceFontEntry *font = NULL;
@@ -7189,7 +7197,6 @@ LLVoiceClient::voiceFontEntry *LLVoiceClient::addSessionFont(const voice_font_id
mSessionFontList.insert(voice_font_list_t::value_type(font->mID, &(font->mName)));
mSessionFontMap.insert(voice_font_map_t::value_type(font->mID, font));
}
- return font;
}
bool LLVoiceClient::setVoiceFont(voice_font_id_t id)
diff --git a/indra/newview/llvoiceclient.h b/indra/newview/llvoiceclient.h
index 0df4e4bb3b..9409e19644 100644
--- a/indra/newview/llvoiceclient.h
+++ b/indra/newview/llvoiceclient.h
@@ -452,13 +452,14 @@ static void updatePosition(void);
const voice_font_id_t getVoiceFont() const;
const voice_font_list_t &getVoiceFontList() const { return mSessionFontList; };
- voiceFontEntry *addSessionFont(const voice_font_id_t &id,
- const std::string &name,
- const std::string &description,
- const std::string &expirationDate,
- const bool hasExpired,
- const std::string &fontType,
- const std::string &fontStatus);
+ void clearSessionFonts();
+ void addSessionFont(const voice_font_id_t &id,
+ const std::string &name,
+ const std::string &description,
+ const std::string &expirationDate,
+ const bool hasExpired,
+ const std::string &fontType,
+ const std::string &fontStatus);
void accountGetSessionFontsResponse(int statusCode, const std::string &statusString);
/////////////////////////////