diff options
author | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-09-07 19:56:39 +0300 |
---|---|---|
committer | Vadim ProductEngine <vsavchuk@productengine.com> | 2011-09-07 19:56:39 +0300 |
commit | 2c7e943cd2a0e08e7a8216fded332cac18fcc79c (patch) | |
tree | b533cc1553f5d334edf11aafbafa28c33b925c8b /indra | |
parent | daf9c53595ebad3561b2a0ea00d9da2f697189d0 (diff) |
STORM-1577 WIP Minor cleanup.
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llfloatertranslationsettings.cpp | 4 | ||||
-rw-r--r-- | indra/newview/llfloatertranslationsettings.h | 5 |
2 files changed, 4 insertions, 5 deletions
diff --git a/indra/newview/llfloatertranslationsettings.cpp b/indra/newview/llfloatertranslationsettings.cpp index 3e77578997..4079fdf482 100644 --- a/indra/newview/llfloatertranslationsettings.cpp +++ b/indra/newview/llfloatertranslationsettings.cpp @@ -85,14 +85,14 @@ std::string LLFloaterTranslationSettings::getSelectedService() const return mTranslationServiceRadioGroup->getSelectedValue().asString(); } -void LLFloaterTranslationSettings::showError(const std::string& err_name) +void LLFloaterTranslationSettings::showError(const std::string& err_name) const { LLSD args; args["MESSAGE"] = getString(err_name); LLNotificationsUtil::add("GenericAlert", args); } -bool LLFloaterTranslationSettings::validate() +bool LLFloaterTranslationSettings::validate() const { bool translate_chat = mMachineTranslationCB->getValue().asBoolean(); if (!translate_chat) return true; diff --git a/indra/newview/llfloatertranslationsettings.h b/indra/newview/llfloatertranslationsettings.h index 1c03b86f4d..47e2fc80e6 100644 --- a/indra/newview/llfloatertranslationsettings.h +++ b/indra/newview/llfloatertranslationsettings.h @@ -43,10 +43,9 @@ public: private: std::string getSelectedService() const; - void showError(const std::string& err_name); - bool validate(); + void showError(const std::string& err_name) const; + bool validate() const; void updateControlsEnabledState(); - void onMachineTranslationToggle(); void onBtnOK(); LLCheckBoxCtrl* mMachineTranslationCB; |