From f9473e8afcb624cc1b101195bf15943ec372b56f Mon Sep 17 00:00:00 2001 From: Alexander Gavriliuk Date: Mon, 6 May 2024 16:52:34 +0200 Subject: secondlife/viewer#1333 BOOL to bool conversion leftovers: ternaries --- indra/newview/lltexturectrl.cpp | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'indra/newview/lltexturectrl.cpp') diff --git a/indra/newview/lltexturectrl.cpp b/indra/newview/lltexturectrl.cpp index 34bd8412f5..fd7d8bcc6c 100644 --- a/indra/newview/lltexturectrl.cpp +++ b/indra/newview/lltexturectrl.cpp @@ -1353,19 +1353,19 @@ void LLFloaterTexturePicker::changeMode() { int index = mModeSelector->getValue().asInteger(); - mDefaultBtn->setVisible(index == PICKER_INVENTORY ? true : false); - mBlankBtn->setVisible(index == PICKER_INVENTORY ? true : false); - mNoneBtn->setVisible(index == PICKER_INVENTORY ? true : false); - mFilterEdit->setVisible(index == PICKER_INVENTORY ? true : false); - mInventoryPanel->setVisible(index == PICKER_INVENTORY ? true : false); + mDefaultBtn->setVisible(index == PICKER_INVENTORY); + mBlankBtn->setVisible(index == PICKER_INVENTORY); + mNoneBtn->setVisible(index == PICKER_INVENTORY); + mFilterEdit->setVisible(index == PICKER_INVENTORY); + mInventoryPanel->setVisible(index == PICKER_INVENTORY); - getChild("l_add_btn")->setVisible(index == PICKER_LOCAL ? true : false); - getChild("l_rem_btn")->setVisible(index == PICKER_LOCAL ? true : false); - getChild("l_upl_btn")->setVisible(index == PICKER_LOCAL ? true : false); - getChild("l_name_list")->setVisible(index == PICKER_LOCAL ? true : false); + getChild("l_add_btn")->setVisible(index == PICKER_LOCAL); + getChild("l_rem_btn")->setVisible(index == PICKER_LOCAL); + getChild("l_upl_btn")->setVisible(index == PICKER_LOCAL); + getChild("l_name_list")->setVisible(index == PICKER_LOCAL); - getChild("l_bake_use_texture_combo_box")->setVisible(index == PICKER_BAKE ? true : false); - getChild("hide_base_mesh_region")->setVisible(false);// index == 2 ? true : false); + getChild("l_bake_use_texture_combo_box")->setVisible(index == PICKER_BAKE); + getChild("hide_base_mesh_region")->setVisible(false);// index == 2); bool pipette_visible = (index == PICKER_INVENTORY) && (mInventoryPickType != PICK_MATERIAL); @@ -2239,8 +2239,8 @@ void LLTextureCtrl::draw() // Using the discard level, do not show the string if the texture is almost but not // fully loaded. if (mTexturep.notNull() && - (!mTexturep->isFullyLoaded()) && - (mShowLoadingPlaceholder == true)) + !mTexturep->isFullyLoaded() && + mShowLoadingPlaceholder) { U32 v_offset = 25; LLFontGL* font = LLFontGL::getFontSansSerif(); -- cgit v1.2.3