From 2c7e943cd2a0e08e7a8216fded332cac18fcc79c Mon Sep 17 00:00:00 2001 From: Vadim ProductEngine Date: Wed, 7 Sep 2011 19:56:39 +0300 Subject: STORM-1577 WIP Minor cleanup. --- indra/newview/llfloatertranslationsettings.cpp | 4 ++-- indra/newview/llfloatertranslationsettings.h | 5 ++--- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'indra') 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; -- cgit v1.2.3