summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatertranslationsettings.cpp
diff options
context:
space:
mode:
authorAnsariel <ansariel.hiller@phoenixviewer.com>2024-02-21 21:05:14 +0100
committerAndrey Lihatskiy <alihatskiy@productengine.com>2024-02-21 23:14:31 +0200
commit60d3dd98a44230c21803c1606552ee098ed9fa7c (patch)
treeaf0aa11c458ca86f786560e0875f7e018e1a16b9 /indra/newview/llfloatertranslationsettings.cpp
parent855eea7ddf9e1de9226036ca94ccb03ac0e311b9 (diff)
Convert remaining BOOL to bool
Diffstat (limited to 'indra/newview/llfloatertranslationsettings.cpp')
-rw-r--r--indra/newview/llfloatertranslationsettings.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/indra/newview/llfloatertranslationsettings.cpp b/indra/newview/llfloatertranslationsettings.cpp
index e9b7a4a815..b9b845fde5 100644
--- a/indra/newview/llfloatertranslationsettings.cpp
+++ b/indra/newview/llfloatertranslationsettings.cpp
@@ -113,8 +113,8 @@ bool LLFloaterTranslationSettings::postBuild()
void LLFloaterTranslationSettings::onOpen(const LLSD& key)
{
mMachineTranslationCB->setValue(gSavedSettings.getBOOL("TranslateChat"));
- mLanguageCombo->setSelectedByValue(gSavedSettings.getString("TranslateLanguage"), TRUE);
- mTranslationServiceRadioGroup->setSelectedByValue(gSavedSettings.getString("TranslationService"), TRUE);
+ mLanguageCombo->setSelectedByValue(gSavedSettings.getString("TranslateLanguage"), true);
+ mTranslationServiceRadioGroup->setSelectedByValue(gSavedSettings.getString("TranslationService"), true);
LLSD azure_key = gSavedSettings.getLLSD("AzureTranslateAPIKey");
if (azure_key.isMap() && !azure_key["id"].asString().empty())
@@ -135,22 +135,22 @@ void LLFloaterTranslationSettings::onOpen(const LLSD& key)
}
else
{
- mAzureAPIKeyEditor->setTentative(TRUE);
+ mAzureAPIKeyEditor->setTentative(true);
mAzureAPIRegionEditor->setTentative(true);
- mAzureKeyVerified = FALSE;
+ mAzureKeyVerified = false;
}
std::string google_key = gSavedSettings.getString("GoogleTranslateAPIKey");
if (!google_key.empty())
{
mGoogleAPIKeyEditor->setText(google_key);
- mGoogleAPIKeyEditor->setTentative(FALSE);
+ mGoogleAPIKeyEditor->setTentative(false);
verifyKey(LLTranslate::SERVICE_GOOGLE, google_key, false);
}
else
{
- mGoogleAPIKeyEditor->setTentative(TRUE);
- mGoogleKeyVerified = FALSE;
+ mGoogleAPIKeyEditor->setTentative(true);
+ mGoogleKeyVerified = false;
}
LLSD deepl_key = gSavedSettings.getLLSD("DeepLTranslateAPIKey");
@@ -163,8 +163,8 @@ void LLFloaterTranslationSettings::onOpen(const LLSD& key)
}
else
{
- mDeepLAPIKeyEditor->setTentative(TRUE);
- mDeepLKeyVerified = FALSE;
+ mDeepLAPIKeyEditor->setTentative(true);
+ mDeepLKeyVerified = false;
}
updateControlsEnabledState();
@@ -340,7 +340,7 @@ void LLFloaterTranslationSettings::onEditorFocused(LLFocusableElement* control)
if (editor->getTentative())
{
editor->setText(LLStringUtil::null);
- editor->setTentative(FALSE);
+ editor->setTentative(false);
}
}
}