summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloatertranslationsettings.cpp4
-rw-r--r--indra/newview/llfloatertranslationsettings.h5
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;