Fixed several compile errors with VS2005
This commit is contained in:
@@ -59,10 +59,10 @@
|
||||
#include "llviewercontrol.h"
|
||||
#include "llvoavatar.h"
|
||||
#include "llsdutil.h"
|
||||
// <edit>
|
||||
#include "llimportobject.h"
|
||||
#include "llappviewer.h" // gLostItemsRoot
|
||||
// </edit>
|
||||
// <edit>
|
||||
#include "llimportobject.h"
|
||||
#include "llappviewer.h" // gLostItemsRoot
|
||||
// </edit>
|
||||
#include <deque>
|
||||
|
||||
//#define DIFF_INVENTORY_FILES
|
||||
@@ -211,14 +211,14 @@ BOOL LLInventoryModel::isObjectDescendentOf(const LLUUID& obj_id,
|
||||
while(obj)
|
||||
{
|
||||
const LLUUID& parent_id = obj->getParentUUID();
|
||||
// <edit>
|
||||
if(parent_id == obj->getUUID())
|
||||
{
|
||||
// infinite loop... same thing as having no parent, hopefully.
|
||||
llwarns << "This shit has itself as parent! " << parent_id.asString() << ", " << obj->getName() << llendl;
|
||||
return FALSE;
|
||||
}
|
||||
// </edit>
|
||||
// <edit>
|
||||
if(parent_id == obj->getUUID())
|
||||
{
|
||||
// infinite loop... same thing as having no parent, hopefully.
|
||||
llwarns << "This shit has itself as parent! " << parent_id.asString() << ", " << obj->getName() << llendl;
|
||||
return FALSE;
|
||||
}
|
||||
// </edit>
|
||||
if( parent_id.isNull() )
|
||||
{
|
||||
return FALSE;
|
||||
@@ -835,14 +835,14 @@ void LLInventoryModel::deleteObject(const LLUUID& id)
|
||||
// folders, items, etc in a fairly efficient manner.
|
||||
void LLInventoryModel::purgeDescendentsOf(const LLUUID& id)
|
||||
{
|
||||
// <edit> "Deliberately disobeying you" derf derf
|
||||
//EHasChildren children = categoryHasChildren(id);
|
||||
//if(children == CHILDREN_NO)
|
||||
//{
|
||||
// llinfos << "Not purging descendents of " << id << llendl;
|
||||
// return;
|
||||
//}
|
||||
// </edit>
|
||||
// <edit> "Deliberately disobeying you" derf derf
|
||||
//EHasChildren children = categoryHasChildren(id);
|
||||
//if(children == CHILDREN_NO)
|
||||
//{
|
||||
// llinfos << "Not purging descendents of " << id << llendl;
|
||||
// return;
|
||||
//}
|
||||
// </edit>
|
||||
LLPointer<LLViewerInventoryCategory> cat = getCategory(id);
|
||||
if(cat.notNull())
|
||||
{
|
||||
@@ -1397,10 +1397,10 @@ void LLInventoryModel::bulkFetch(std::string url)
|
||||
|
||||
if (cat)
|
||||
{
|
||||
// <edit> Pre-emptive strike
|
||||
if(!(gInventory.isObjectDescendentOf(cat->getUUID(), gLocalInventoryRoot)))
|
||||
{
|
||||
// </edit>
|
||||
// <edit> Pre-emptive strike
|
||||
if(!(gInventory.isObjectDescendentOf(cat->getUUID(), gLocalInventoryRoot)))
|
||||
{
|
||||
// </edit>
|
||||
if ( LLViewerInventoryCategory::VERSION_UNKNOWN == cat->getVersion())
|
||||
{
|
||||
LLSD folder_sd;
|
||||
@@ -1436,9 +1436,9 @@ void LLInventoryModel::bulkFetch(std::string url)
|
||||
}
|
||||
|
||||
}
|
||||
// <edit>
|
||||
}
|
||||
// </edit>
|
||||
// <edit>
|
||||
}
|
||||
// </edit>
|
||||
}
|
||||
}
|
||||
sFetchQueue.pop_front();
|
||||
@@ -1739,10 +1739,10 @@ void LLInventoryModel::addItem(LLViewerInventoryItem* item)
|
||||
if(item)
|
||||
{
|
||||
mItemMap[item->getUUID()] = item;
|
||||
// <edit>
|
||||
if(LLXmlImport::sImportInProgress)
|
||||
LLXmlImport::onNewItem(item);
|
||||
// </edit>
|
||||
// <edit>
|
||||
if(LLXmlImport::sImportInProgress)
|
||||
LLXmlImport::onNewItem(item);
|
||||
// </edit>
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1928,8 +1928,8 @@ bool LLInventoryModel::isCategoryComplete(const LLUUID& cat_id) const
|
||||
}
|
||||
}
|
||||
|
||||
// <edit>
|
||||
if((cat_id == gLocalInventoryRoot) || gInventory.isObjectDescendentOf(cat_id, gLocalInventoryRoot)) return true;
|
||||
// <edit>
|
||||
if((cat_id == gLocalInventoryRoot) || gInventory.isObjectDescendentOf(cat_id, gLocalInventoryRoot)) return true;
|
||||
// </edit>
|
||||
|
||||
return false;
|
||||
@@ -3485,11 +3485,11 @@ bool LLInventoryCollectFunctor::itemTransferCommonlyAllowed(LLInventoryItem* ite
|
||||
LLVOAvatar* my_avatar = NULL;
|
||||
|
||||
switch(item->getType())
|
||||
{
|
||||
// <edit> I don't even think changing this did anything
|
||||
//case LLAssetType::AT_CALLINGCARD:
|
||||
// // not allowed
|
||||
// break;
|
||||
{
|
||||
// <edit> I don't even think changing this did anything
|
||||
//case LLAssetType::AT_CALLINGCARD:
|
||||
// // not allowed
|
||||
// break;
|
||||
|
||||
case LLAssetType::AT_OBJECT:
|
||||
my_avatar = gAgent.getAvatarObject();
|
||||
|
||||
Reference in New Issue
Block a user