diff options
| author | Merov Linden <merov@lindenlab.com> | 2014-05-06 18:21:04 -0700 | 
|---|---|---|
| committer | Merov Linden <merov@lindenlab.com> | 2014-05-06 18:21:04 -0700 | 
| commit | 8dae4bc222d1b0744254442ab0b26538285341de (patch) | |
| tree | 88da67f01f0dc32457b4a5085d5e699ea55715a4 /indra/newview/llinventorymodel.cpp | |
| parent | f6bb6a0f935323434a3f3d0d94e94c8d8238effe (diff) | |
| parent | d0ef02c23a7a37c8c9bfe3a86bae88bb811fc9fe (diff) | |
Pull merge from lindenlab/viewer-release. Fixed some conflicts and compile errors
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
| -rwxr-xr-x | indra/newview/llinventorymodel.cpp | 392 | 
1 files changed, 196 insertions, 196 deletions
| diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index ed7fd3cd34..7db1f29797 100755 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -112,7 +112,7 @@ bool LLCanCache::operator()(LLInventoryCategory* cat, LLInventoryItem* item)  			S32 descendents_actual = 0;  			if(cats && items)  			{ -				descendents_actual = cats->count() + items->count(); +				descendents_actual = cats->size() + items->size();  			}  			if(descendents_server == descendents_actual)  			{ @@ -448,12 +448,12 @@ const LLUUID LLInventoryModel::findCategoryUUIDForType(LLFolderType::EType prefe  		cats = get_ptr_in_map(mParentChildCategoryTree, root_id);  		if(cats)  		{ -			S32 count = cats->count(); +			S32 count = cats->size();  			for(S32 i = 0; i < count; ++i)  			{ -				if (cats->get(i)->getPreferredType() == preferred_type) +				if(cats->at(i)->getPreferredType() == preferred_type)  				{ -                    rv = cats->get(i)->getUUID(); +					rv = cats->at(i)->getUUID();  					break;  				}  			} @@ -485,12 +485,12 @@ const LLUUID LLInventoryModel::findLibraryCategoryUUIDForType(LLFolderType::ETyp  		cats = get_ptr_in_map(mParentChildCategoryTree, root_id);  		if(cats)  		{ -			S32 count = cats->count(); +			S32 count = cats->size();  			for(S32 i = 0; i < count; ++i)  			{ -				if(cats->get(i)->getPreferredType() == preferred_type) +				if(cats->at(i)->getPreferredType() == preferred_type)  				{ -					rv = cats->get(i)->getUUID(); +					rv = cats->at(i)->getUUID();  					break;  				}  			} @@ -572,13 +572,13 @@ LLUUID LLInventoryModel::createNewCategory(const LLUUID& parent_id,  	LLUUID id;  	if(!isInventoryUsable())  	{ -		llwarns << "Inventory is broken." << llendl; +		LL_WARNS() << "Inventory is broken." << LL_ENDL;  		return id;  	}  	if(LLFolderType::lookup(preferred_type) == LLFolderType::badLookup())  	{ -		lldebugs << "Attempt to create undefined category." << llendl; +		LL_DEBUGS() << "Attempt to create undefined category." << LL_ENDL;  		return id;  	} @@ -690,13 +690,13 @@ void LLInventoryModel::collectDescendentsIf(const LLUUID& id,  	cat_array_t* cat_array = get_ptr_in_map(mParentChildCategoryTree, id);  	if(cat_array)  	{ -		S32 count = cat_array->count(); +		S32 count = cat_array->size();  		for(S32 i = 0; i < count; ++i)  		{ -			LLViewerInventoryCategory* cat = cat_array->get(i); +			LLViewerInventoryCategory* cat = cat_array->at(i);  			if(add(cat,NULL))  			{ -				cats.put(cat); +				cats.push_back(cat);  			}  			collectDescendentsIf(cat->getUUID(), cats, items, include_trash, add);  		} @@ -710,10 +710,10 @@ void LLInventoryModel::collectDescendentsIf(const LLUUID& id,  	// Note: if making it fully recursive, need more checking against infinite loops.  	if (follow_folder_links && item_array)  	{ -		S32 count = item_array->count(); +		S32 count = item_array->size();  		for(S32 i = 0; i < count; ++i)  		{ -			item = item_array->get(i); +			item = item_array->at(i);  			if (item && item->getActualType() == LLAssetType::AT_LINK_FOLDER)  			{  				LLViewerInventoryCategory *linked_cat = item->getLinkedCategory(); @@ -727,7 +727,7 @@ void LLInventoryModel::collectDescendentsIf(const LLUUID& id,  						// BAP should this be added here?  May not  						// matter if it's only being used in current  						// outfit traversal. -						cats.put(LLPointer<LLViewerInventoryCategory>(linked_cat)); +						cats.push_back(LLPointer<LLViewerInventoryCategory>(linked_cat));  					}  					collectDescendentsIf(linked_cat->getUUID(), cats, items, include_trash, add, FALSE);  				} @@ -738,13 +738,13 @@ void LLInventoryModel::collectDescendentsIf(const LLUUID& id,  	// Move onto items  	if(item_array)  	{ -		S32 count = item_array->count(); +		S32 count = item_array->size();  		for(S32 i = 0; i < count; ++i)  		{ -			item = item_array->get(i); +			item = item_array->at(i);  			if(add(NULL, item))  			{ -				items.put(item); +				items.push_back(item);  			}  		}  	} @@ -840,7 +840,7 @@ U32 LLInventoryModel::updateItem(const LLViewerInventoryItem* item)  	if(!isInventoryUsable())  	{ -		llwarns << "Inventory is broken." << llendl; +		LL_WARNS() << "Inventory is broken." << LL_ENDL;  		return mask;  	} @@ -852,7 +852,7 @@ U32 LLInventoryModel::updateItem(const LLViewerInventoryItem* item)  	}  #endif -	LLViewerInventoryItem* old_item = getItem(item->getUUID()); +	LLPointer<LLViewerInventoryItem> old_item = getItem(item->getUUID());  	LLPointer<LLViewerInventoryItem> new_item;  	if(old_item)  	{ @@ -868,12 +868,12 @@ U32 LLInventoryModel::updateItem(const LLViewerInventoryItem* item)  			item_array = get_ptr_in_map(mParentChildItemTree, old_parent_id);  			if(item_array)  			{ -				item_array->removeObj(old_item); +				vector_replace_with_last(*item_array, old_item);  			}  			item_array = get_ptr_in_map(mParentChildItemTree, new_parent_id);  			if(item_array)  			{ -				item_array->put(old_item); +				item_array->push_back(old_item);  			}  			mask |= LLInventoryObserver::STRUCTURE;  		} @@ -899,11 +899,11 @@ U32 LLInventoryModel::updateItem(const LLViewerInventoryItem* item)  			{  				// *FIX: bit of a hack to call update server from here...  				new_item->updateServer(TRUE); -				item_array->put(new_item); +				item_array->push_back(new_item);  			}  			else  			{ -				llwarns << "Couldn't find parent-child item tree for " << new_item->getName() << llendl; +				LL_WARNS() << "Couldn't find parent-child item tree for " << new_item->getName() << LL_ENDL;  			}  		}  		else @@ -927,13 +927,13 @@ U32 LLInventoryModel::updateItem(const LLViewerInventoryItem* item)  			item_array_t* item_array = get_ptr_in_map(mParentChildItemTree, parent_id);  			if(item_array)  			{ -				item_array->put(new_item); +				item_array->push_back(new_item);  			}  			else  			{  				// Whoops! No such parent, make one. -				llinfos << "Lost item: " << new_item->getUUID() << " - " -						<< new_item->getName() << llendl; +				LL_INFOS() << "Lost item: " << new_item->getUUID() << " - " +						<< new_item->getName() << LL_ENDL;  				parent_id = findCategoryUUIDForType(LLFolderType::FT_LOST_AND_FOUND);  				new_item->setParent(parent_id);  				item_array = get_ptr_in_map(mParentChildItemTree, parent_id); @@ -942,11 +942,11 @@ U32 LLInventoryModel::updateItem(const LLViewerInventoryItem* item)  					// *FIX: bit of a hack to call update server from  					// here...  					new_item->updateServer(TRUE); -					item_array->put(new_item); +					item_array->push_back(new_item);  				}  				else  				{ -					llwarns << "Lost and found Not there!!" << llendl; +					LL_WARNS() << "Lost and found Not there!!" << LL_ENDL;  				}  			}  		} @@ -1020,11 +1020,11 @@ void LLInventoryModel::updateCategory(const LLViewerInventoryCategory* cat)  	if(!isInventoryUsable())  	{ -		llwarns << "Inventory is broken." << llendl; +		LL_WARNS() << "Inventory is broken." << LL_ENDL;  		return;  	} -	LLViewerInventoryCategory* old_cat = getCategory(cat->getUUID()); +	LLPointer<LLViewerInventoryCategory> old_cat = getCategory(cat->getUUID());  	if(old_cat)  	{  		// We already have an old category, modify it's values @@ -1038,12 +1038,12 @@ void LLInventoryModel::updateCategory(const LLViewerInventoryCategory* cat)  			cat_array = getUnlockedCatArray(old_parent_id);  			if(cat_array)  			{ -				cat_array->removeObj(old_cat); +				vector_replace_with_last(*cat_array, old_cat);  			}  			cat_array = getUnlockedCatArray(new_parent_id);  			if(cat_array)  			{ -				cat_array->put(old_cat); +				cat_array->push_back(old_cat);  			}  			mask |= LLInventoryObserver::STRUCTURE;              mask |= LLInventoryObserver::INTERNAL; @@ -1067,7 +1067,7 @@ void LLInventoryModel::updateCategory(const LLViewerInventoryCategory* cat)  		cat_array = getUnlockedCatArray(cat->getParentUUID());  		if(cat_array)  		{ -			cat_array->put(new_cat); +			cat_array->push_back(new_cat);  		}  		// make space in the tree for this category's children. @@ -1083,40 +1083,40 @@ void LLInventoryModel::updateCategory(const LLViewerInventoryCategory* cat)  void LLInventoryModel::moveObject(const LLUUID& object_id, const LLUUID& cat_id)  { -	lldebugs << "LLInventoryModel::moveObject()" << llendl; +	LL_DEBUGS() << "LLInventoryModel::moveObject()" << LL_ENDL;  	if(!isInventoryUsable())  	{ -		llwarns << "Inventory is broken." << llendl; +		LL_WARNS() << "Inventory is broken." << LL_ENDL;  		return;  	}  	if((object_id == cat_id) || !is_in_map(mCategoryMap, cat_id))  	{ -		llwarns << "Could not move inventory object " << object_id << " to " -				<< cat_id << llendl; +		LL_WARNS() << "Could not move inventory object " << object_id << " to " +				<< cat_id << LL_ENDL;  		return;  	} -	LLViewerInventoryCategory* cat = getCategory(object_id); +	LLPointer<LLViewerInventoryCategory> cat = getCategory(object_id);  	if(cat && (cat->getParentUUID() != cat_id))  	{  		cat_array_t* cat_array;  		cat_array = getUnlockedCatArray(cat->getParentUUID()); -		if(cat_array) cat_array->removeObj(cat); +		if(cat_array) vector_replace_with_last(*cat_array, cat);  		cat_array = getUnlockedCatArray(cat_id);  		cat->setParent(cat_id); -		if(cat_array) cat_array->put(cat); +		if(cat_array) cat_array->push_back(cat);  		addChangedMask(LLInventoryObserver::STRUCTURE, object_id);  		return;  	} -	LLViewerInventoryItem* item = getItem(object_id); +	LLPointer<LLViewerInventoryItem> item = getItem(object_id);  	if(item && (item->getParentUUID() != cat_id))  	{  		item_array_t* item_array;  		item_array = getUnlockedItemArray(item->getParentUUID()); -		if(item_array) item_array->removeObj(item); +		if(item_array) vector_replace_with_last(*item_array, item);  		item_array = getUnlockedItemArray(cat_id);  		item->setParent(cat_id); -		if(item_array) item_array->put(item); +		if(item_array) item_array->push_back(item);  		addChangedMask(LLInventoryObserver::STRUCTURE, object_id);  		return;  	} @@ -1185,15 +1185,15 @@ void LLInventoryModel::changeCategoryParent(LLViewerInventoryCategory* cat,  // Delete a particular inventory object by ID.  void LLInventoryModel::deleteObject(const LLUUID& id)  { -	lldebugs << "LLInventoryModel::deleteObject()" << llendl; +	LL_DEBUGS() << "LLInventoryModel::deleteObject()" << LL_ENDL;  	LLPointer<LLInventoryObject> obj = getObject(id);  	if (!obj)   	{ -		llwarns << "Deleting non-existent object [ id: " << id << " ] " << llendl; +		LL_WARNS() << "Deleting non-existent object [ id: " << id << " ] " << LL_ENDL;  		return;  	} -	lldebugs << "Deleting inventory object " << id << llendl; +	LL_DEBUGS() << "Deleting inventory object " << id << LL_ENDL;  	mLastItem = NULL;  	LLUUID parent_id = obj->getParentUUID();  	mCategoryMap.erase(id); @@ -1202,14 +1202,14 @@ void LLInventoryModel::deleteObject(const LLUUID& id)  	item_array_t* item_list = getUnlockedItemArray(parent_id);  	if(item_list)  	{ -		LLViewerInventoryItem* item = (LLViewerInventoryItem*)((LLInventoryObject*)obj); -		item_list->removeObj(item); +		LLPointer<LLViewerInventoryItem> item = (LLViewerInventoryItem*)((LLInventoryObject*)obj); +		vector_replace_with_last(*item_list, item);  	}  	cat_array_t* cat_list = getUnlockedCatArray(parent_id);  	if(cat_list)  	{ -		LLViewerInventoryCategory* cat = (LLViewerInventoryCategory*)((LLInventoryObject*)obj); -		cat_list->removeObj(cat); +		LLPointer<LLViewerInventoryCategory> cat = (LLViewerInventoryCategory*)((LLInventoryObject*)obj); +		vector_replace_with_last(*cat_list, cat);  	}  	item_list = getUnlockedItemArray(id);  	if(item_list) @@ -1232,7 +1232,7 @@ void LLInventoryModel::deleteObject(const LLUUID& id)  // Delete a particular inventory item by ID, and remove it from the server.  void LLInventoryModel::purgeObject(const LLUUID &id)  { -	lldebugs << "LLInventoryModel::purgeObject() [ id: " << id << " ] " << llendl; +	LL_DEBUGS() << "LLInventoryModel::purgeObject() [ id: " << id << " ] " << LL_ENDL;  	LLPointer<LLInventoryObject> obj = getObject(id);  	if(obj)  	{ @@ -1274,8 +1274,8 @@ void LLInventoryModel::purgeDescendentsOf(const LLUUID& id)  		if (LLClipboard::instance().hasContents() && LLClipboard::instance().isCutMode())  		{  			// Something on the clipboard is in "cut mode" and needs to be preserved -			llinfos << "LLInventoryModel::purgeDescendentsOf " << cat->getName() -			<< " iterate and purge non hidden items" << llendl; +			LL_INFOS() << "LLInventoryModel::purgeDescendentsOf " << cat->getName() +			<< " iterate and purge non hidden items" << LL_ENDL;  			cat_array_t* categories;  			item_array_t* items;  			// Get the list of direct descendants in that category passed as argument @@ -1304,8 +1304,8 @@ void LLInventoryModel::purgeDescendentsOf(const LLUUID& id)  		{  			// Fast purge  			// do the cache accounting -			llinfos << "LLInventoryModel::purgeDescendentsOf " << cat->getName() -				<< llendl; +			LL_INFOS() << "LLInventoryModel::purgeDescendentsOf " << cat->getName() +				<< LL_ENDL;  			S32 descendents = cat->getDescendentCount();  			if(descendents > 0)  			{ @@ -1335,7 +1335,7 @@ void LLInventoryModel::purgeDescendentsOf(const LLUUID& id)  							   categories,  							   items,  							   INCLUDE_TRASH); -			S32 count = items.count(); +			S32 count = items.size();  			item_map_t::iterator item_map_end = mItemMap.end();  			cat_map_t::iterator cat_map_end = mCategoryMap.end(); @@ -1343,7 +1343,7 @@ void LLInventoryModel::purgeDescendentsOf(const LLUUID& id)  			for(S32 i = 0; i < count; ++i)  			{ -				uu_id = items.get(i)->getUUID(); +				uu_id = items.at(i)->getUUID();  				// This check prevents the deletion of a previously deleted item.  				// This is necessary because deletion is not done in a hierarchical @@ -1355,10 +1355,10 @@ void LLInventoryModel::purgeDescendentsOf(const LLUUID& id)  				}  			} -			count = categories.count(); +			count = categories.size();  			for(S32 i = 0; i < count; ++i)  			{ -				uu_id = categories.get(i)->getUUID(); +				uu_id = categories.at(i)->getUUID();  				if (mCategoryMap.find(uu_id) != cat_map_end)  				{  					deleteObject(uu_id); @@ -1402,7 +1402,7 @@ void LLInventoryModel::notifyObservers()  		// Within notifyObservers, something called notifyObservers  		// again.  This type of recursion is unsafe because it causes items to be   		// processed twice, and this can easily lead to infinite loops. -		llwarns << "Call was made to notifyObservers within notifyObservers!" << llendl; +		LL_WARNS() << "Call was made to notifyObservers within notifyObservers!" << LL_ENDL;  		return;  	} @@ -1431,7 +1431,7 @@ void LLInventoryModel::addChangedMask(U32 mask, const LLUUID& referent)  		// Something marked an item for change within a call to notifyObservers  		// (which is in the process of processing the list of items marked for change).  		// This means the change may fail to be processed. -		llwarns << "Adding changed mask within notify observers!  Change will likely be lost." << llendl; +		LL_WARNS() << "Adding changed mask within notify observers!  Change will likely be lost." << LL_ENDL;  	}  	mModifyMask |= mask;  @@ -1457,8 +1457,8 @@ void  LLInventoryModel::fetchInventoryResponder::result(const LLSD& content)  	agent_id = content["agent_id"].asUUID();  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a inventory update for the wrong agent: " << agent_id -				<< llendl; +		LL_WARNS() << "Got a inventory update for the wrong agent: " << agent_id +				<< LL_ENDL;  		return;  	}*/  	item_array_t items; @@ -1471,8 +1471,8 @@ void  LLInventoryModel::fetchInventoryResponder::result(const LLSD& content)  		LLPointer<LLViewerInventoryItem> titem = new LLViewerInventoryItem;  		titem->unpackMessage(content["items"][i]); -		lldebugs << "LLInventoryModel::messageUpdateCore() item id:" -				 << titem->getUUID() << llendl; +		LL_DEBUGS() << "LLInventoryModel::messageUpdateCore() item id:" +				 << titem->getUUID() << LL_ENDL;  		items.push_back(titem);  		// examine update for changes.  		LLViewerInventoryItem* itemp = gInventory.getItem(titem->getUUID()); @@ -1511,7 +1511,7 @@ void  LLInventoryModel::fetchInventoryResponder::result(const LLSD& content)  //If we get back an error (not found, etc...), handle it here  void LLInventoryModel::fetchInventoryResponder::errorWithContent(U32 status, const std::string& reason, const LLSD& content)  { -	llwarns << "fetchInventory error [status:" << status << "]: " << content << llendl; +	LL_WARNS() << "fetchInventory error [status:" << status << "]: " << content << LL_ENDL;  	gInventory.notifyObservers();  } @@ -1519,14 +1519,14 @@ bool LLInventoryModel::fetchDescendentsOf(const LLUUID& folder_id) const  {  	if(folder_id.isNull())   	{ -		llwarns << "Calling fetch descendents on NULL folder id!" << llendl; +		LL_WARNS() << "Calling fetch descendents on NULL folder id!" << LL_ENDL;  		return false;  	}  	LLViewerInventoryCategory* cat = getCategory(folder_id);  	if(!cat)  	{ -		llwarns << "Asked to fetch descendents of non-existent folder: " -				<< folder_id << llendl; +		LL_WARNS() << "Asked to fetch descendents of non-existent folder: " +				<< folder_id << LL_ENDL;  		return false;  	}  	//S32 known_descendents = 0; @@ -1534,11 +1534,11 @@ bool LLInventoryModel::fetchDescendentsOf(const LLUUID& folder_id) const  	//item_array_t* items = get_ptr_in_map(mParentChildItemTree, folder_id);  	//if(categories)  	//{ -	//	known_descendents += categories->count(); +	//	known_descendents += categories->size();  	//}  	//if(items)  	//{ -	//	known_descendents += items->count(); +	//	known_descendents += items->size();  	//}  	return cat->fetch();  } @@ -1547,12 +1547,12 @@ void LLInventoryModel::cache(  	const LLUUID& parent_folder_id,  	const LLUUID& agent_id)  { -	lldebugs << "Caching " << parent_folder_id << " for " << agent_id -			 << llendl; +	LL_DEBUGS() << "Caching " << parent_folder_id << " for " << agent_id +			 << LL_ENDL;  	LLViewerInventoryCategory* root_cat = getCategory(parent_folder_id);  	if(!root_cat) return;  	cat_array_t categories; -	categories.put(root_cat); +	categories.push_back(root_cat);  	item_array_t items;  	LLCanCache can_cache(this); @@ -1573,19 +1573,19 @@ void LLInventoryModel::cache(  	gzip_filename.append(".gz");  	if(gzip_file(inventory_filename, gzip_filename))  	{ -		lldebugs << "Successfully compressed " << inventory_filename << llendl; +		LL_DEBUGS() << "Successfully compressed " << inventory_filename << LL_ENDL;  		LLFile::remove(inventory_filename);  	}  	else  	{ -		llwarns << "Unable to compress " << inventory_filename << llendl; +		LL_WARNS() << "Unable to compress " << inventory_filename << LL_ENDL;  	}  }  void LLInventoryModel::addCategory(LLViewerInventoryCategory* category)  { -	//llinfos << "LLInventoryModel::addCategory()" << llendl; +	//LL_INFOS() << "LLInventoryModel::addCategory()" << LL_ENDL;  	if(category)  	{  		// We aren't displaying the Meshes folder @@ -1614,7 +1614,7 @@ void LLInventoryModel::addItem(LLViewerInventoryItem* item)  		if ((item->getType() == LLAssetType::AT_NONE)  		    || LLAssetType::lookup(item->getType()) == LLAssetType::badLookup())  		{ -			llwarns << "Got bad asset type for item [ name: " << item->getName() << " type: " << item->getType() << " inv-type: " << item->getInventoryType() << " ], ignoring." << llendl; +			LL_WARNS() << "Got bad asset type for item [ name: " << item->getName() << " type: " << item->getType() << " inv-type: " << item->getInventoryType() << " ], ignoring." << LL_ENDL;  			return;  		} @@ -1622,7 +1622,7 @@ void LLInventoryModel::addItem(LLViewerInventoryItem* item)  		// The item will show up as a broken link.  		if (item->getIsBrokenLink())  		{ -			llinfos << "Adding broken link [ name: " << item->getName() << " itemID: " << item->getUUID() << " assetID: " << item->getAssetUUID() << " )  parent: " << item->getParentUUID() << llendl; +			LL_INFOS() << "Adding broken link [ name: " << item->getName() << " itemID: " << item->getUUID() << " assetID: " << item->getAssetUUID() << " )  parent: " << item->getParentUUID() << LL_ENDL;  		}  		mItemMap[item->getUUID()] = item; @@ -1632,7 +1632,7 @@ void LLInventoryModel::addItem(LLViewerInventoryItem* item)  // Empty the entire contents  void LLInventoryModel::empty()  { -//	llinfos << "LLInventoryModel::empty()" << llendl; +//	LL_INFOS() << "LLInventoryModel::empty()" << LL_ENDL;  	std::for_each(  		mParentChildCategoryTree.begin(),  		mParentChildCategoryTree.end(), @@ -1665,7 +1665,7 @@ void LLInventoryModel::accountForUpdate(const LLCategoryUpdate& update) const  			S32 descendents_actual = 0;  			if(cats && items)  			{ -				descendents_actual = cats->count() + items->count(); +				descendents_actual = cats->size() + items->size();  			}  			if(descendents_server == descendents_actual)  			{ @@ -1673,9 +1673,9 @@ void LLInventoryModel::accountForUpdate(const LLCategoryUpdate& update) const  				descendents_actual += update.mDescendentDelta;  				cat->setDescendentCount(descendents_actual);  				cat->setVersion(++version); -				lldebugs << "accounted: '" << cat->getName() << "' " +				LL_DEBUGS() << "accounted: '" << cat->getName() << "' "  						 << version << " with " << descendents_actual -						 << " descendents." << llendl; +						 << " descendents." << LL_ENDL;  			}  		}  		if(!accounted) @@ -1683,13 +1683,13 @@ void LLInventoryModel::accountForUpdate(const LLCategoryUpdate& update) const  			// Error condition, this means that the category did not register that  			// it got new descendents (perhaps because it is still being loaded)  			// which means its descendent count will be wrong. -			llwarns << "Accounting failed for '" << cat->getName() << "' version:" -					 << version << llendl; +			LL_WARNS() << "Accounting failed for '" << cat->getName() << "' version:" +					 << version << LL_ENDL;  		}  	}  	else  	{ -		llwarns << "No category found for update " << update.mCategoryID << llendl; +		LL_WARNS() << "No category found for update " << update.mCategoryID << LL_ENDL;  	}  } @@ -1729,18 +1729,18 @@ void LLInventoryModel::incrementCategoryVersion(const LLUUID& category_id)  		if(LLViewerInventoryCategory::VERSION_UNKNOWN != version)  		{  			cat->setVersion(version + 1); -			llinfos << "IncrementVersion: " << cat->getName() << " " -					<< cat->getVersion() << llendl; +			LL_INFOS() << "IncrementVersion: " << cat->getName() << " " +					<< cat->getVersion() << LL_ENDL;  		}  		else  		{ -			llinfos << "Attempt to increment version when unknown: " -					<< category_id << llendl; +			LL_INFOS() << "Attempt to increment version when unknown: " +					<< category_id << LL_ENDL;  		}  	}  	else  	{ -		llinfos << "Attempt to increment category: " << category_id << llendl; +		LL_INFOS() << "Attempt to increment category: " << category_id << LL_ENDL;  	}  }  void LLInventoryModel::incrementCategorySetVersion( @@ -1780,12 +1780,12 @@ LLInventoryModel::EHasChildren LLInventoryModel::categoryHasChildren(  	// Shouldn't have to run this, but who knows.  	parent_cat_map_t::const_iterator cat_it = mParentChildCategoryTree.find(cat->getUUID()); -	if (cat_it != mParentChildCategoryTree.end() && cat_it->second->count() > 0) +	if (cat_it != mParentChildCategoryTree.end() && cat_it->second->size() > 0)  	{  		return CHILDREN_YES;  	}  	parent_item_map_t::const_iterator item_it = mParentChildItemTree.find(cat->getUUID()); -	if (item_it != mParentChildItemTree.end() && item_it->second->count() > 0) +	if (item_it != mParentChildItemTree.end() && item_it->second->size() > 0)  	{  		return CHILDREN_YES;  	} @@ -1805,7 +1805,7 @@ bool LLInventoryModel::isCategoryComplete(const LLUUID& cat_id) const  		S32 descendents_actual = 0;  		if(cats && items)  		{ -			descendents_actual = cats->count() + items->count(); +			descendents_actual = cats->size() + items->size();  		}  		if(descendents_server == descendents_actual)  		{ @@ -1819,7 +1819,7 @@ bool LLInventoryModel::loadSkeleton(  	const LLSD& options,  	const LLUUID& owner_id)  { -	lldebugs << "importing inventory skeleton for " << owner_id << llendl; +	LL_DEBUGS() << "importing inventory skeleton for " << owner_id << LL_ENDL;  	typedef std::set<LLPointer<LLViewerInventoryCategory>, InventoryIDPtrLess> cat_set_t;  	cat_set_t temp_cats; @@ -1856,7 +1856,7 @@ bool LLInventoryModel::loadSkeleton(  		}  		else  		{ -			llwarns << "Unable to import near " << name.asString() << llendl; +			LL_WARNS() << "Unable to import near " << name.asString() << LL_ENDL;              rv = false;  		}  	} @@ -1893,7 +1893,7 @@ bool LLInventoryModel::loadSkeleton(  			}  			else  			{ -				llinfos << "Unable to gunzip " << gzip_filename << llendl; +				LL_INFOS() << "Unable to gunzip " << gzip_filename << LL_ENDL;  			}  		}  		bool is_cache_obsolete = false; @@ -1903,7 +1903,7 @@ bool LLInventoryModel::loadSkeleton(  			// found to generate a set of categories we should add. We  			// will go through each category loaded and if the version  			// does not match, invalidate the version. -			S32 count = categories.count(); +			S32 count = categories.size();  			cat_set_t::iterator not_cached = temp_cats.end();  			std::set<LLUUID> cached_ids;  			for(S32 i = 0; i < count; ++i) @@ -1974,10 +1974,10 @@ bool LLInventoryModel::loadSkeleton(  						if (item->getIsBrokenLink())  						{  							//bad_link_count++; -							lldebugs << "Attempted to add cached link item without baseobj present ( name: " +							LL_DEBUGS() << "Attempted to add cached link item without baseobj present ( name: "  									 << item->getName() << " itemID: " << item->getUUID()  									 << " assetID: " << item->getAssetUUID() -									 << " ).  Ignoring and invalidating " << cat->getName() << " . " << llendl; +									 << " ).  Ignoring and invalidating " << cat->getName() << " . " << LL_ENDL;  							possible_broken_links.push_back(item);  							continue;  						} @@ -2004,7 +2004,7 @@ bool LLInventoryModel::loadSkeleton(  					{  						bad_link_count++;  						invalid_categories.insert(cit->second); -						//llinfos << "link still broken: " << item->getName() << " in folder " << cat->getName() << llendl; +						//LL_INFOS() << "link still broken: " << item->getName() << " in folder " << cat->getName() << LL_ENDL;  					}  					else  					{ @@ -2016,11 +2016,11 @@ bool LLInventoryModel::loadSkeleton(  					}  				} - 				llinfos << "Attempted to add " << bad_link_count + 				LL_INFOS() << "Attempted to add " << bad_link_count   						<< " cached link items without baseobj present. "  					    << good_link_count << " link items were successfully added. "  					    << recovered_link_count << " links added in recovery. " - 						<< "The corresponding categories were invalidated." << llendl; + 						<< "The corresponding categories were invalidated." << LL_ENDL;  			}  		} @@ -2044,9 +2044,9 @@ bool LLInventoryModel::loadSkeleton(  		{  			LLViewerInventoryCategory* cat = (*invalid_cat_it).get();  			cat->setVersion(NO_VERSION); -			LL_DEBUGS("Inventory") << "Invalidating category name: " << cat->getName() << " UUID: " << cat->getUUID() << " due to invalid descendents cache" << llendl; +			LL_DEBUGS("Inventory") << "Invalidating category name: " << cat->getName() << " UUID: " << cat->getUUID() << " due to invalid descendents cache" << LL_ENDL;  		} -		LL_INFOS("Inventory") << "Invalidated " << invalid_categories.size() << " categories due to invalid descendents cache" << llendl; +		LL_INFOS("Inventory") << "Invalidated " << invalid_categories.size() << " categories due to invalid descendents cache" << LL_ENDL;  		// At this point, we need to set the known descendents for each  		// category which successfully cached so that we do not @@ -2078,15 +2078,15 @@ bool LLInventoryModel::loadSkeleton(  		if(is_cache_obsolete)  		{  			// If out of date, remove the gzipped file too. -			llwarns << "Inv cache out of date, removing" << llendl; +			LL_WARNS() << "Inv cache out of date, removing" << LL_ENDL;  			LLFile::remove(gzip_filename);  		}  		categories.clear(); // will unref and delete entries  	} -	llinfos << "Successfully loaded " << cached_category_count +	LL_INFOS() << "Successfully loaded " << cached_category_count  			<< " categories and " << cached_item_count << " items from cache." -			<< llendl; +			<< LL_ENDL;  	return rv;  } @@ -2096,7 +2096,7 @@ bool LLInventoryModel::loadSkeleton(  // should be sufficient for our needs.   void LLInventoryModel::buildParentChildMap()  { -	llinfos << "LLInventoryModel::buildParentChildMap()" << llendl; +	LL_INFOS() << "LLInventoryModel::buildParentChildMap()" << LL_ENDL;  	// *NOTE: I am skipping the logic around folder version  	// synchronization here because it seems if a folder is lost, we @@ -2113,7 +2113,7 @@ void LLInventoryModel::buildParentChildMap()  	for(cat_map_t::iterator cit = mCategoryMap.begin(); cit != mCategoryMap.end(); ++cit)  	{  		LLViewerInventoryCategory* cat = cit->second; -		cats.put(cat); +		cats.push_back(cat);  		if (mParentChildCategoryTree.count(cat->getUUID()) == 0)  		{  			llassert_always(mCategoryLock[cat->getUUID()] == false); @@ -2141,16 +2141,16 @@ void LLInventoryModel::buildParentChildMap()  	// Now we have a structure with all of the categories that we can  	// iterate over and insert into the correct place in the child  	// category tree.  -	S32 count = cats.count(); +	S32 count = cats.size();  	S32 i;  	S32 lost = 0;  	for(i = 0; i < count; ++i)  	{ -		LLViewerInventoryCategory* cat = cats.get(i); +		LLViewerInventoryCategory* cat = cats.at(i);  		catsp = getUnlockedCatArray(cat->getParentUUID());  		if(catsp)  		{ -			catsp->put(cat); +			catsp->push_back(cat);  		}  		else  		{ @@ -2160,8 +2160,8 @@ void LLInventoryModel::buildParentChildMap()  			// implement it, we would need a set or map of uuid pairs  			// which would be (folder_id, new_parent_id) to be sent up  			// to the server. -			llinfos << "Lost categroy: " << cat->getUUID() << " - " -					<< cat->getName() << llendl; +			LL_INFOS() << "Lost categroy: " << cat->getUUID() << " - " +					<< cat->getName() << LL_ENDL;  			++lost;  			// plop it into the lost & found.  			LLFolderType::EType pref = cat->getPreferredType(); @@ -2183,17 +2183,17 @@ void LLInventoryModel::buildParentChildMap()  			catsp = getUnlockedCatArray(cat->getParentUUID());  			if(catsp)  			{ -				catsp->put(cat); +				catsp->push_back(cat);  			}  			else  			{		 -				llwarns << "Lost and found Not there!!" << llendl; +				LL_WARNS() << "Lost and found Not there!!" << LL_ENDL;  			}  		}  	}  	if(lost)  	{ -		llwarns << "Found  " << lost << " lost categories." << llendl; +		LL_WARNS() << "Found  " << lost << " lost categories." << LL_ENDL;  	}  	const BOOL COF_exists = (findCategoryUUIDForType(LLFolderType::FT_CURRENT_OUTFIT, FALSE) != LLUUID::null); @@ -2210,25 +2210,25 @@ void LLInventoryModel::buildParentChildMap()  		for(item_map_t::iterator iit = mItemMap.begin(); iit != mItemMap.end(); ++iit)  		{  			item = (*iit).second; -			items.put(item); +			items.push_back(item);  		}  	} -	count = items.count(); +	count = items.size();  	lost = 0;  	uuid_vec_t lost_item_ids;  	for(i = 0; i < count; ++i)  	{  		LLPointer<LLViewerInventoryItem> item; -		item = items.get(i); +		item = items.at(i);  		itemsp = getUnlockedItemArray(item->getParentUUID());  		if(itemsp)  		{ -			itemsp->put(item); +			itemsp->push_back(item);  		}  		else  		{ -			llinfos << "Lost item: " << item->getUUID() << " - " -					<< item->getName() << llendl; +			LL_INFOS() << "Lost item: " << item->getUUID() << " - " +					<< item->getName() << LL_ENDL;  			++lost;  			// plop it into the lost & found.  			// @@ -2240,17 +2240,17 @@ void LLInventoryModel::buildParentChildMap()  			itemsp = getUnlockedItemArray(item->getParentUUID());  			if(itemsp)  			{ -				itemsp->put(item); +				itemsp->push_back(item);  			}  			else  			{ -				llwarns << "Lost and found Not there!!" << llendl; +				LL_WARNS() << "Lost and found Not there!!" << LL_ENDL;  			}  		}  	}  	if(lost)  	{ -		llwarns << "Found " << lost << " lost items." << llendl; +		LL_WARNS() << "Found " << lost << " lost items." << LL_ENDL;  		LLMessageSystem* msg = gMessageSystem;  		BOOL start_new_message = TRUE;  		const LLUUID lnf = findCategoryUUIDForType(LLFolderType::FT_LOST_AND_FOUND); @@ -2319,7 +2319,7 @@ void LLInventoryModel::buildParentChildMap()  			// The inv tree is built.  			mIsAgentInvUsable = true; -			llinfos << "Inventory initialized, notifying observers" << llendl; +			LL_INFOS() << "Inventory initialized, notifying observers" << LL_ENDL;  			addChangedMask(LLInventoryObserver::ALL, LLUUID::null);  			notifyObservers();  		} @@ -2366,14 +2366,14 @@ bool LLInventoryModel::loadFromFile(const std::string& filename,  {  	if(filename.empty())  	{ -		llerrs << "Filename is Null!" << llendl; +		LL_ERRS() << "Filename is Null!" << LL_ENDL;  		return false;  	} -	llinfos << "LLInventoryModel::loadFromFile(" << filename << ")" << llendl; +	LL_INFOS() << "LLInventoryModel::loadFromFile(" << filename << ")" << LL_ENDL;  	LLFILE* file = LLFile::fopen(filename, "rb");		/*Flawfinder: ignore*/  	if(!file)  	{ -		llinfos << "unable to load inventory from: " << filename << llendl; +		LL_INFOS() << "unable to load inventory from: " << filename << LL_ENDL;  		return false;  	}  	// *NOTE: This buffer size is hard coded into scanf() below. @@ -2408,11 +2408,11 @@ bool LLInventoryModel::loadFromFile(const std::string& filename,  			LLPointer<LLViewerInventoryCategory> inv_cat = new LLViewerInventoryCategory(LLUUID::null);  			if(inv_cat->importFileLocal(file))  			{ -				categories.put(inv_cat); +				categories.push_back(inv_cat);  			}  			else  			{ -				llwarns << "loadInventoryFromFile().  Ignoring invalid inventory category: " << inv_cat->getName() << llendl; +				LL_WARNS() << "loadInventoryFromFile().  Ignoring invalid inventory category: " << inv_cat->getName() << LL_ENDL;  				//delete inv_cat; // automatic when inv_cat is reassigned or destroyed  			}  		} @@ -2430,25 +2430,25 @@ bool LLInventoryModel::loadFromFile(const std::string& filename,  				if(inv_item->getUUID().isNull())  				{  					//delete inv_item; // automatic when inv_cat is reassigned or destroyed -					llwarns << "Ignoring inventory with null item id: " -							<< inv_item->getName() << llendl; +					LL_WARNS() << "Ignoring inventory with null item id: " +							<< inv_item->getName() << LL_ENDL;  				}  				else  				{ -					items.put(inv_item); +					items.push_back(inv_item);  				}  			}  			else  			{ -				llwarns << "loadInventoryFromFile().  Ignoring invalid inventory item: " << inv_item->getName() << llendl; +				LL_WARNS() << "loadInventoryFromFile().  Ignoring invalid inventory item: " << inv_item->getName() << LL_ENDL;  				//delete inv_item; // automatic when inv_cat is reassigned or destroyed  			}  		}  		else  		{ -			llwarns << "Unknown token in inventory file '" << keyword << "'" -					<< llendl; +			LL_WARNS() << "Unknown token in inventory file '" << keyword << "'" +					<< LL_ENDL;  		}  	}  	fclose(file); @@ -2464,19 +2464,19 @@ bool LLInventoryModel::saveToFile(const std::string& filename,  {  	if(filename.empty())  	{ -		llerrs << "Filename is Null!" << llendl; +		LL_ERRS() << "Filename is Null!" << LL_ENDL;  		return false;  	} -	llinfos << "LLInventoryModel::saveToFile(" << filename << ")" << llendl; +	LL_INFOS() << "LLInventoryModel::saveToFile(" << filename << ")" << LL_ENDL;  	LLFILE* file = LLFile::fopen(filename, "wb");		/*Flawfinder: ignore*/  	if(!file)  	{ -		llwarns << "unable to save inventory to: " << filename << llendl; +		LL_WARNS() << "unable to save inventory to: " << filename << LL_ENDL;  		return false;  	}  	fprintf(file, "\tinv_cache_version\t%d\n",sCurrentInvCacheVersion); -	S32 count = categories.count(); +	S32 count = categories.size();  	S32 i;  	for(i = 0; i < count; ++i)  	{ @@ -2487,7 +2487,7 @@ bool LLInventoryModel::saveToFile(const std::string& filename,  		}  	} -	count = items.count(); +	count = items.size();  	for(i = 0; i < count; ++i)  	{  		items[i]->exportFile(file); @@ -2576,8 +2576,8 @@ bool LLInventoryModel::messageUpdateCore(LLMessageSystem* msg, bool account)  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a inventory update for the wrong agent: " << agent_id -				<< llendl; +		LL_WARNS() << "Got a inventory update for the wrong agent: " << agent_id +				<< LL_ENDL;  		return false;  	}  	item_array_t items; @@ -2589,8 +2589,8 @@ bool LLInventoryModel::messageUpdateCore(LLMessageSystem* msg, bool account)  	{  		LLPointer<LLViewerInventoryItem> titem = new LLViewerInventoryItem;  		titem->unpackMessage(msg, _PREHASH_InventoryData, i); -		lldebugs << "LLInventoryModel::messageUpdateCore() item id:" -				 << titem->getUUID() << llendl; +		LL_DEBUGS() << "LLInventoryModel::messageUpdateCore() item id:" +				 << titem->getUUID() << LL_ENDL;  		items.push_back(titem);  		// examine update for changes.  		LLViewerInventoryItem* itemp = gInventory.getItem(titem->getUUID()); @@ -2637,17 +2637,17 @@ void LLInventoryModel::removeInventoryItem(LLUUID agent_id, LLMessageSystem* msg  {  	LLUUID item_id;  	S32 count = msg->getNumberOfBlocksFast(msg_label); -	lldebugs << "Message has " << count << " item blocks" << llendl; +	LL_DEBUGS() << "Message has " << count << " item blocks" << LL_ENDL;  	uuid_vec_t item_ids;  	update_map_t update;  	for(S32 i = 0; i < count; ++i)  	{  		msg->getUUIDFast(msg_label, _PREHASH_ItemID, item_id, i); -		lldebugs << "Checking for item-to-be-removed " << item_id << llendl; +		LL_DEBUGS() << "Checking for item-to-be-removed " << item_id << LL_ENDL;  		LLViewerInventoryItem* itemp = gInventory.getItem(item_id);  		if(itemp)  		{ -		lldebugs << "Item will be removed " << item_id << llendl; +		LL_DEBUGS() << "Item will be removed " << item_id << LL_ENDL;  			// we only bother with the delete and account if we found  			// the item - this is usually a back-up for permissions,  			// so frequently the item will already be gone. @@ -2658,7 +2658,7 @@ void LLInventoryModel::removeInventoryItem(LLUUID agent_id, LLMessageSystem* msg  	gInventory.accountForUpdate(update);  	for(uuid_vec_t::iterator it = item_ids.begin(); it != item_ids.end(); ++it)  	{ -		lldebugs << "Calling deleteObject " << *it << llendl; +		LL_DEBUGS() << "Calling deleteObject " << *it << LL_ENDL;  		gInventory.deleteObject(*it);  	}  } @@ -2666,13 +2666,13 @@ void LLInventoryModel::removeInventoryItem(LLUUID agent_id, LLMessageSystem* msg  // 	static  void LLInventoryModel::processRemoveInventoryItem(LLMessageSystem* msg, void**)  { -	lldebugs << "LLInventoryModel::processRemoveInventoryItem()" << llendl; +	LL_DEBUGS() << "LLInventoryModel::processRemoveInventoryItem()" << LL_ENDL;  	LLUUID agent_id, item_id;  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a RemoveInventoryItem for the wrong agent." -				<< llendl; +		LL_WARNS() << "Got a RemoveInventoryItem for the wrong agent." +				<< LL_ENDL;  		return;  	}  	LLInventoryModel::removeInventoryItem(agent_id, msg, _PREHASH_InventoryData); @@ -2683,14 +2683,14 @@ void LLInventoryModel::processRemoveInventoryItem(LLMessageSystem* msg, void**)  void LLInventoryModel::processUpdateInventoryFolder(LLMessageSystem* msg,  													void**)  { -	lldebugs << "LLInventoryModel::processUpdateInventoryFolder()" << llendl; +	LL_DEBUGS() << "LLInventoryModel::processUpdateInventoryFolder()" << LL_ENDL;  	LLUUID agent_id, folder_id, parent_id;  	//char name[DB_INV_ITEM_NAME_BUF_SIZE];  	msg->getUUIDFast(_PREHASH_FolderData, _PREHASH_AgentID, agent_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got an UpdateInventoryFolder for the wrong agent." -				<< llendl; +		LL_WARNS() << "Got an UpdateInventoryFolder for the wrong agent." +				<< LL_ENDL;  		return;  	}  	LLPointer<LLViewerInventoryCategory> lastfolder; // hack @@ -2768,14 +2768,14 @@ void LLInventoryModel::removeInventoryFolder(LLUUID agent_id,  void LLInventoryModel::processRemoveInventoryFolder(LLMessageSystem* msg,  													void**)  { -	lldebugs << "LLInventoryModel::processRemoveInventoryFolder()" << llendl; +	LL_DEBUGS() << "LLInventoryModel::processRemoveInventoryFolder()" << LL_ENDL;  	LLUUID agent_id, session_id;  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_SessionID, session_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a RemoveInventoryFolder for the wrong agent." -		<< llendl; +		LL_WARNS() << "Got a RemoveInventoryFolder for the wrong agent." +		<< LL_ENDL;  		return;  	}  	LLInventoryModel::removeInventoryFolder( agent_id, msg ); @@ -2786,14 +2786,14 @@ void LLInventoryModel::processRemoveInventoryFolder(LLMessageSystem* msg,  void LLInventoryModel::processRemoveInventoryObjects(LLMessageSystem* msg,  													void**)  { -	lldebugs << "LLInventoryModel::processRemoveInventoryObjects()" << llendl; +	LL_DEBUGS() << "LLInventoryModel::processRemoveInventoryObjects()" << LL_ENDL;  	LLUUID agent_id, session_id;  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_SessionID, session_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a RemoveInventoryObjects for the wrong agent." -		<< llendl; +		LL_WARNS() << "Got a RemoveInventoryObjects for the wrong agent." +		<< LL_ENDL;  		return;  	}  	LLInventoryModel::removeInventoryFolder( agent_id, msg ); @@ -2809,8 +2809,8 @@ void LLInventoryModel::processSaveAssetIntoInventory(LLMessageSystem* msg,  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a SaveAssetIntoInventory message for the wrong agent." -				<< llendl; +		LL_WARNS() << "Got a SaveAssetIntoInventory message for the wrong agent." +				<< LL_ENDL;  		return;  	} @@ -2820,8 +2820,8 @@ void LLInventoryModel::processSaveAssetIntoInventory(LLMessageSystem* msg,  	// The viewer ignores the asset id because this message is only  	// used for attachments/objects, so the asset id is not used in  	// the viewer anyway. -	lldebugs << "LLInventoryModel::processSaveAssetIntoInventory itemID=" -		<< item_id << llendl; +	LL_DEBUGS() << "LLInventoryModel::processSaveAssetIntoInventory itemID=" +		<< item_id << LL_ENDL;  	LLViewerInventoryItem* item = gInventory.getItem( item_id );  	if( item )  	{ @@ -2832,8 +2832,8 @@ void LLInventoryModel::processSaveAssetIntoInventory(LLMessageSystem* msg,  	}  	else  	{ -		llinfos << "LLInventoryModel::processSaveAssetIntoInventory item" -			" not found: " << item_id << llendl; +		LL_INFOS() << "LLInventoryModel::processSaveAssetIntoInventory item" +			" not found: " << item_id << LL_ENDL;  	}  	if(gViewerWindow)  	{ @@ -2856,13 +2856,13 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**)  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a BulkUpdateInventory for the wrong agent." << llendl; +		LL_WARNS() << "Got a BulkUpdateInventory for the wrong agent." << LL_ENDL;  		return;  	}  	LLUUID tid;  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_TransactionID, tid);  #ifndef LL_RELEASE_FOR_DOWNLOAD -	llinfos << "Bulk inventory: " << tid << llendl; +	LL_INFOS() << "Bulk inventory: " << tid << LL_ENDL;  #endif  	update_map_t update; @@ -2874,9 +2874,9 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**)  	{  		LLPointer<LLViewerInventoryCategory> tfolder = new LLViewerInventoryCategory(gAgent.getID());  		tfolder->unpackMessage(msg, _PREHASH_FolderData, i); -		llinfos << "unpacked folder '" << tfolder->getName() << "' (" +		LL_INFOS() << "unpacked folder '" << tfolder->getName() << "' ("  				<< tfolder->getUUID() << ") in " << tfolder->getParentUUID() -				<< llendl; +				<< LL_ENDL;  		if(tfolder->getUUID().notNull())  		{  			folders.push_back(tfolder); @@ -2916,8 +2916,8 @@ void LLInventoryModel::processBulkUpdateInventory(LLMessageSystem* msg, void**)  	{  		LLPointer<LLViewerInventoryItem> titem = new LLViewerInventoryItem;  		titem->unpackMessage(msg, _PREHASH_ItemData, i); -		llinfos << "unpacked item '" << titem->getName() << "' in " -				<< titem->getParentUUID() << llendl; +		LL_INFOS() << "unpacked item '" << titem->getName() << "' in " +				<< titem->getParentUUID() << LL_ENDL;  		U32 callback_id;  		msg->getU32Fast(_PREHASH_ItemData, _PREHASH_CallbackID, callback_id);  		if(titem->getUUID().notNull() ) // && callback_id.notNull() ) @@ -3023,7 +3023,7 @@ void LLInventoryModel::processInventoryDescendents(LLMessageSystem* msg,void**)  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a UpdateInventoryItem for the wrong agent." << llendl; +		LL_WARNS() << "Got a UpdateInventoryItem for the wrong agent." << LL_ENDL;  		return;  	}  	LLUUID parent_id; @@ -3052,7 +3052,7 @@ void LLInventoryModel::processInventoryDescendents(LLMessageSystem* msg,void**)  		// If the item has already been added (e.g. from link prefetch), then it doesn't need to be re-added.  		if (gInventory.getItem(titem->getUUID()))  		{ -			lldebugs << "Skipping prefetched item [ Name: " << titem->getName() << " | Type: " << titem->getActualType() << " | ItemUUID: " << titem->getUUID() << " ] " << llendl; +			LL_DEBUGS() << "Skipping prefetched item [ Name: " << titem->getName() << " | Type: " << titem->getActualType() << " | ItemUUID: " << titem->getUUID() << " ] " << LL_ENDL;  			continue;  		}  		gInventory.updateItem(titem); @@ -3074,13 +3074,13 @@ void LLInventoryModel::processInventoryDescendents(LLMessageSystem* msg,void**)  // static  void LLInventoryModel::processMoveInventoryItem(LLMessageSystem* msg, void**)  { -	lldebugs << "LLInventoryModel::processMoveInventoryItem()" << llendl; +	LL_DEBUGS() << "LLInventoryModel::processMoveInventoryItem()" << LL_ENDL;  	LLUUID agent_id;  	msg->getUUIDFast(_PREHASH_AgentData, _PREHASH_AgentID, agent_id);  	if(agent_id != gAgent.getID())  	{ -		llwarns << "Got a MoveInventoryItem message for the wrong agent." -				<< llendl; +		LL_WARNS() << "Got a MoveInventoryItem message for the wrong agent." +				<< LL_ENDL;  		return;  	} @@ -3099,8 +3099,8 @@ void LLInventoryModel::processMoveInventoryItem(LLMessageSystem* msg, void**)  			msg->getUUIDFast(_PREHASH_InventoryData, _PREHASH_FolderID, folder_id, i);  			msg->getString("InventoryData", "NewName", new_name, i); -			lldebugs << "moving item " << item_id << " to folder " -					 << folder_id << llendl; +			LL_DEBUGS() << "moving item " << item_id << " to folder " +					 << folder_id << LL_ENDL;  			update_list_t update;  			LLCategoryUpdate old_folder(item->getParentUUID(), -1);  			update.push_back(old_folder); @@ -3118,7 +3118,7 @@ void LLInventoryModel::processMoveInventoryItem(LLMessageSystem* msg, void**)  		}  		else  		{ -			llinfos << "LLInventoryModel::processMoveInventoryItem item not found: " << item_id << llendl; +			LL_INFOS() << "LLInventoryModel::processMoveInventoryItem item not found: " << item_id << LL_ENDL;  		}  	}  	if(anything_changed) @@ -3274,7 +3274,7 @@ BOOL LLInventoryModel::getIsFirstTimeInViewer2()  	// Do not call this before parentchild map is built.  	if (!gInventory.mIsAgentInvUsable)  	{ -		llwarns << "Parent Child Map not yet built; guessing as first time in viewer2." << llendl; +		LL_WARNS() << "Parent Child Map not yet built; guessing as first time in viewer2." << LL_ENDL;  		return TRUE;  	} @@ -3409,37 +3409,37 @@ void LLInventoryModel::rearrangeFavoriteLandmarks(const LLUUID& source_item_id,  // *NOTE: DEBUG functionality  void LLInventoryModel::dumpInventory() const  { -	llinfos << "\nBegin Inventory Dump\n**********************:" << llendl; -	llinfos << "mCategory[] contains " << mCategoryMap.size() << " items." << llendl; +	LL_INFOS() << "\nBegin Inventory Dump\n**********************:" << LL_ENDL; +	LL_INFOS() << "mCategory[] contains " << mCategoryMap.size() << " items." << LL_ENDL;  	for(cat_map_t::const_iterator cit = mCategoryMap.begin(); cit != mCategoryMap.end(); ++cit)  	{  		const LLViewerInventoryCategory* cat = cit->second;  		if(cat)  		{ -			llinfos << "  " <<  cat->getUUID() << " '" << cat->getName() << "' " +			LL_INFOS() << "  " <<  cat->getUUID() << " '" << cat->getName() << "' "  					<< cat->getVersion() << " " << cat->getDescendentCount() -					<< llendl; +					<< LL_ENDL;  		}  		else  		{ -			llinfos << "  NULL!" << llendl; +			LL_INFOS() << "  NULL!" << LL_ENDL;  		}  	}	 -	llinfos << "mItemMap[] contains " << mItemMap.size() << " items." << llendl; +	LL_INFOS() << "mItemMap[] contains " << mItemMap.size() << " items." << LL_ENDL;  	for(item_map_t::const_iterator iit = mItemMap.begin(); iit != mItemMap.end(); ++iit)  	{  		const LLViewerInventoryItem* item = iit->second;  		if(item)  		{ -			llinfos << "  " << item->getUUID() << " " -					<< item->getName() << llendl; +			LL_INFOS() << "  " << item->getUUID() << " " +					<< item->getName() << LL_ENDL;  		}  		else  		{ -			llinfos << "  NULL!" << llendl; +			LL_INFOS() << "  NULL!" << LL_ENDL;  		}  	} -	llinfos << "\n**********************\nEnd Inventory Dump" << llendl; +	LL_INFOS() << "\n**********************\nEnd Inventory Dump" << LL_ENDL;  }  ///---------------------------------------------------------------------------- | 
