summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterbuycontents.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/llfloaterbuycontents.cpp
parent855eea7ddf9e1de9226036ca94ccb03ac0e311b9 (diff)
Convert remaining BOOL to bool
Diffstat (limited to 'indra/newview/llfloaterbuycontents.cpp')
-rw-r--r--indra/newview/llfloaterbuycontents.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/indra/newview/llfloaterbuycontents.cpp b/indra/newview/llfloaterbuycontents.cpp
index 317a23c82e..ba9da863b4 100644
--- a/indra/newview/llfloaterbuycontents.cpp
+++ b/indra/newview/llfloaterbuycontents.cpp
@@ -107,7 +107,7 @@ void LLFloaterBuyContents::show(const LLSaleInfo& sale_info)
LLUUID owner_id;
std::string owner_name;
- BOOL owners_identical = LLSelectMgr::getInstance()->selectGetOwner(owner_id, owner_name);
+ bool owners_identical = LLSelectMgr::getInstance()->selectGetOwner(owner_id, owner_name);
if (!owners_identical)
{
LLNotificationsUtil::add("BuyContentsOneOwner");
@@ -167,7 +167,7 @@ void LLFloaterBuyContents::inventoryChanged(LLViewerObject* obj,
// default to turning off the buy button.
LLView* buy_btn = getChildView("buy_btn");
- buy_btn->setEnabled(FALSE);
+ buy_btn->setEnabled(false);
LLUUID owner_id;
bool is_group_owned;
@@ -208,17 +208,17 @@ void LLFloaterBuyContents::inventoryChanged(LLViewerObject* obj,
// There will be at least one item shown in the display, so go
// ahead and enable the buy button.
- buy_btn->setEnabled(TRUE);
+ buy_btn->setEnabled(true);
// Create the line in the list
LLSD row;
- BOOL item_is_multi = FALSE;
+ bool item_is_multi = false;
if ((inv_item->getFlags() & LLInventoryItemFlags::II_FLAGS_LANDMARK_VISITED
|| inv_item->getFlags() & LLInventoryItemFlags::II_FLAGS_OBJECT_HAS_MULTIPLE_ITEMS)
&& !(inv_item->getFlags() & LLInventoryItemFlags::II_FLAGS_SUBTYPE_MASK))
{
- item_is_multi = TRUE;
+ item_is_multi = true;
}
std::string icon_name = LLInventoryIcon::getIconName(inv_item->getType(),
@@ -256,7 +256,7 @@ void LLFloaterBuyContents::inventoryChanged(LLViewerObject* obj,
if (wearable_count > 0)
{
- getChildView("wear_check")->setEnabled(TRUE);
+ getChildView("wear_check")->setEnabled(true);
getChild<LLUICtrl>("wear_check")->setValue(LLSD(false) );
}
}
@@ -276,7 +276,7 @@ void LLFloaterBuyContents::onClickBuy()
// We may want to wear this item
if (getChild<LLUICtrl>("wear_check")->getValue())
{
- LLInventoryState::sWearNewClothing = TRUE;
+ LLInventoryState::sWearNewClothing = true;
}
// Put the items where we put new folders.