summaryrefslogtreecommitdiff
path: root/indra/newview/llpreview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'indra/newview/llpreview.cpp')
-rw-r--r--indra/newview/llpreview.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/indra/newview/llpreview.cpp b/indra/newview/llpreview.cpp
index f7a65f6f91..22600f7fc3 100644
--- a/indra/newview/llpreview.cpp
+++ b/indra/newview/llpreview.cpp
@@ -58,12 +58,12 @@ LLPreview::LLPreview(const LLSD& key)
mItemUUID(key.has("itemid") ? key.get("itemid").asUUID() : key.asUUID()),
mObjectUUID(), // set later by setObjectID()
mCopyToInvBtn( NULL ),
- mForceClose(FALSE),
- mUserResized(FALSE),
- mCloseAfterSave(FALSE),
+ mForceClose(false),
+ mUserResized(false),
+ mCloseAfterSave(false),
mAssetStatus(PREVIEW_ASSET_UNLOADED),
- mDirty(TRUE),
- mSaveDialogShown(FALSE)
+ mDirty(true),
+ mSaveDialogShown(false)
{
mAuxItem = new LLInventoryItem;
// don't necessarily steal focus on creation -- sometimes these guys pop up without user action
@@ -142,7 +142,7 @@ void LLPreview::onCommit()
if (!item->isFinished())
{
// We are attempting to save an item that was never loaded
- LL_WARNS() << "LLPreview::onCommit() called with mIsComplete == FALSE"
+ LL_WARNS() << "LLPreview::onCommit() called with mIsComplete == false"
<< " Type: " << item->getType()
<< " ID: " << item->getUUID()
<< LL_ENDL;
@@ -186,7 +186,7 @@ void LLPreview::onCommit()
if( obj )
{
LLSelectMgr::getInstance()->deselectAll();
- LLSelectMgr::getInstance()->addAsIndividual( obj, SELECT_ALL_TES, FALSE );
+ LLSelectMgr::getInstance()->addAsIndividual( obj, SELECT_ALL_TES, false );
LLSelectMgr::getInstance()->selectionSetObjectDescription( getChild<LLUICtrl>("desc")->getValue().asString() );
LLSelectMgr::getInstance()->deselectAll();
@@ -199,7 +199,7 @@ void LLPreview::onCommit()
void LLPreview::changed(U32 mask)
{
- mDirty = TRUE;
+ mDirty = true;
}
void LLPreview::setNotecardInfo(const LLUUID& notecard_inv_id,
@@ -214,7 +214,7 @@ void LLPreview::draw()
LLFloater::draw();
if (mDirty)
{
- mDirty = FALSE;
+ mDirty = false;
refreshFromItem();
}
}
@@ -239,7 +239,7 @@ void LLPreview::refreshFromItem()
}
// static
-BOOL LLPreview::canModify(const LLUUID taskUUID, const LLInventoryItem* item)
+bool LLPreview::canModify(const LLUUID taskUUID, const LLInventoryItem* item)
{
const LLViewerObject* object = nullptr;
if (taskUUID.notNull())
@@ -251,12 +251,12 @@ BOOL LLPreview::canModify(const LLUUID taskUUID, const LLInventoryItem* item)
}
// static
-BOOL LLPreview::canModify(const LLViewerObject* object, const LLInventoryItem* item)
+bool LLPreview::canModify(const LLViewerObject* object, const LLInventoryItem* item)
{
if (object && !object->permModify())
{
// No permission to edit in-world inventory
- return FALSE;
+ return false;
}
return item && gAgent.allowOperation(PERM_MODIFY, item->getPermissions(), GP_OBJECT_MANIPULATE);
@@ -277,7 +277,7 @@ void LLPreview::onRadio(LLUICtrl*, void* userdata)
}
// static
-void LLPreview::hide(const LLUUID& item_uuid, BOOL no_saving /* = FALSE */ )
+void LLPreview::hide(const LLUUID& item_uuid, bool no_saving /* = false */ )
{
LLFloater* floater = LLFloaterReg::findInstance("preview", LLSD(item_uuid));
if (!floater) floater = LLFloaterReg::findInstance("preview_avatar", LLSD(item_uuid));
@@ -287,7 +287,7 @@ void LLPreview::hide(const LLUUID& item_uuid, BOOL no_saving /* = FALSE */ )
{
if ( no_saving )
{
- preview->mForceClose = TRUE;
+ preview->mForceClose = true;
}
preview->closeFloater();
}
@@ -302,7 +302,7 @@ void LLPreview::dirty(const LLUUID& item_uuid)
LLPreview* preview = dynamic_cast<LLPreview*>(floater);
if(preview)
{
- preview->mDirty = TRUE;
+ preview->mDirty = true;
}
}
@@ -442,7 +442,7 @@ void LLPreview::onDiscardBtn(void* data)
const LLInventoryItem* item = self->getItem();
if (!item) return;
- self->mForceClose = TRUE;
+ self->mForceClose = true;
self->closeFloater();
// Move the item to the trash
@@ -495,7 +495,7 @@ LLMultiPreview::LLMultiPreview()
}
setTitle(LLTrans::getString("MultiPreviewTitle"));
buildTabContainer();
- setCanResize(TRUE);
+ setCanResize(true);
}
void LLMultiPreview::onOpen(const LLSD& key)