summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorKitty Barnett <develop@catznip.com>2012-03-29 18:25:48 +0200
committerKitty Barnett <develop@catznip.com>2012-03-29 18:25:48 +0200
commit2587f6d9d8167bb29491ff681dcd133eb28aba67 (patch)
treeb9a286f196506783189b73a9763aae47b848c504 /indra/newview
parent59bfc3f608bed806e03898b833a0fda9f95d42b9 (diff)
Minor fix for GCC
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llappviewer.cpp3
-rw-r--r--indra/newview/llviewercontrol.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 5a68cd531e..fac5416aab 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -2502,7 +2502,8 @@ bool LLAppViewer::initConfiguration()
if (gSavedSettings.getBOOL("SpellCheck"))
{
std::list<std::string> dict_list;
- boost::split(dict_list, gSavedSettings.getString("SpellCheckDictionary"), boost::is_any_of(std::string(",")));
+ std::string dict_setting = gSavedSettings.getString("SpellCheckDictionary");
+ boost::split(dict_list, dict_setting, boost::is_any_of(std::string(",")));
if (!dict_list.empty())
{
LLSpellChecker::setUseSpellCheck(dict_list.front());
diff --git a/indra/newview/llviewercontrol.cpp b/indra/newview/llviewercontrol.cpp
index 7b6dbfaa0b..d7168a401c 100644
--- a/indra/newview/llviewercontrol.cpp
+++ b/indra/newview/llviewercontrol.cpp
@@ -507,7 +507,8 @@ bool handleSpellCheckChanged()
if (gSavedSettings.getBOOL("SpellCheck"))
{
std::list<std::string> dict_list;
- boost::split(dict_list, gSavedSettings.getString("SpellCheckDictionary"), boost::is_any_of(std::string(",")));
+ std::string dict_setting = gSavedSettings.getString("SpellCheckDictionary");
+ boost::split(dict_list, dict_setting, boost::is_any_of(std::string(",")));
if (!dict_list.empty())
{
LLSpellChecker::setUseSpellCheck(dict_list.front());