summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorJonathan Yap <none@none>2012-02-05 15:48:07 -0500
committerJonathan Yap <none@none>2012-02-05 15:48:07 -0500
commit39ffad760b7abd09c8a7af6871fcabbf2da9c1e6 (patch)
tree917cc278b0c1615dae3f917a4911e795507d36f7 /indra
parent6443701a3fc41eff2c48f6e57a79010cdb8339e2 (diff)
STORM-1738 Fix some syntax errors
warn-on-failure:open-license
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llautocorrect.cpp2
-rw-r--r--indra/newview/llautocorrectfloater.cpp11
-rw-r--r--indra/newview/llnearbychatbar.cpp2
3 files changed, 8 insertions, 7 deletions
diff --git a/indra/newview/llautocorrect.cpp b/indra/newview/llautocorrect.cpp
index c16787d637..9162b35f45 100644
--- a/indra/newview/llautocorrect.cpp
+++ b/indra/newview/llautocorrect.cpp
@@ -375,7 +375,7 @@ std::string AutoCorrect::replaceWords(std::string words)
args["REPLACEMENT"]=replacement;
LLNotificationsUtil::add("AutoReplace",args);
}
- ldebugs << "found a word in list " << location.c_str() << " and it will replace " << currentWord.c_str() << " => " << replacement.c_str() << llendl;
+ lldebugs << "found a word in list " << location.c_str() << " and it will replace " << currentWord.c_str() << " => " << replacement.c_str() << llendl;
int wordStart = words.find(currentWord);
words.replace(wordStart,currentWord.length(),replacement);
return replaceWords(words);//lol recursion!
diff --git a/indra/newview/llautocorrectfloater.cpp b/indra/newview/llautocorrectfloater.cpp
index 74762a876f..97170fc65c 100644
--- a/indra/newview/llautocorrectfloater.cpp
+++ b/indra/newview/llautocorrectfloater.cpp
@@ -159,7 +159,7 @@ void AutoCorrectFloater::updateItemsList()
void AutoCorrectFloater::updateNamesList()
{
namesList->deleteAllItems();
- if(!gSavedSettings, "AutoCorrect")
+ if(!gSavedSettings.getBOOL("AutoCorrect"))
{
updateItemsList();
return;
@@ -208,7 +208,8 @@ void AutoCorrectFloater::updateListControlsEnabled(BOOL selected)
}
void AutoCorrectFloater::updateEnabledStuff()
{
- if(!gSavedSettings, "AutoCorrect")
+ BOOL autocorrect = gSavedSettings.getBOOL("AutoCorrect");
+ if(autocorrect)
{
LLCheckBoxCtrl *enBox = getChild<LLCheckBoxCtrl>("ac_enable");
enBox->setDisabledColor(LLColor4::red);
@@ -219,9 +220,9 @@ void AutoCorrectFloater::updateEnabledStuff()
LLUIColorTable::instance().getColor( "LabelTextColor" ));
}
- childSetEnabled("ac_list_name",enabledd);
- childSetEnabled("ac_list_entry",enabledd);
- updateListControlsEnabled(enabledd);
+ childSetEnabled("ac_list_name", autocorrect);
+ childSetEnabled("ac_list_entry", autocorrect);
+ updateListControlsEnabled(autocorrect);
updateNamesList();
AutoCorrect::getInstance()->save();
diff --git a/indra/newview/llnearbychatbar.cpp b/indra/newview/llnearbychatbar.cpp
index 8c8707e16c..86244cbaa6 100644
--- a/indra/newview/llnearbychatbar.cpp
+++ b/indra/newview/llnearbychatbar.cpp
@@ -89,7 +89,7 @@ BOOL LLNearbyChatBar::postBuild()
mChatBox = getChild<LLLineEditor>("chat_box");
// *TODO Establish LineEditor with autocorrect callback
-// mChatBox->setAutocorrectCallback(boost::bind(&AutoCorrect::autocorrectCallback));
+// mChatBox->setAutocorrectCallback(boost::bind(&AutoCorrect::autocorrectCallback, _1, _2));
mChatBox->setCommitCallback(boost::bind(&LLNearbyChatBar::onChatBoxCommit, this));
mChatBox->setKeystrokeCallback(&onChatBoxKeystroke, this);
mChatBox->setFocusLostCallback(boost::bind(&onChatBoxFocusLost, _1, this));