diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2015-04-10 08:55:03 -0400 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2015-04-10 08:55:03 -0400 | 
| commit | 0350e04e6e3be2a80038fc69a56498154aaed3a8 (patch) | |
| tree | 4082a87f7253937ce8221a70ac74ea83551c3e59 | |
| parent | 6ac9852d54d1ee4f826a08ca73f08bccf403d8c3 (diff) | |
DRTVWR-397 WIP - removed get_linked_uuid(), duplicate of gInventory.getLinkedItemID()
| -rwxr-xr-x | indra/newview/llappearancemgr.cpp | 2 | ||||
| -rwxr-xr-x | indra/newview/llgesturemgr.cpp | 18 | ||||
| -rwxr-xr-x | indra/newview/llviewerinventory.cpp | 10 | ||||
| -rwxr-xr-x | indra/newview/llviewerinventory.h | 4 | 
4 files changed, 10 insertions, 24 deletions
| diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index c4dd71de89..d4bdb5f41b 100755 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -2652,7 +2652,7 @@ LLInventoryModel::item_array_t LLAppearanceMgr::findCOFItemLinks(const LLUUID& i  {  	LLInventoryModel::item_array_t result; -    LLUUID linked_id = get_linked_uuid(item_id); +    LLUUID linked_id = gInventory.getLinkedItemID(item_id);      LLInventoryModel::cat_array_t cat_array;      LLInventoryModel::item_array_t item_array;      gInventory.collectDescendents(LLAppearanceMgr::getCOF(), diff --git a/indra/newview/llgesturemgr.cpp b/indra/newview/llgesturemgr.cpp index 7ca36be76e..950a6cfaef 100755 --- a/indra/newview/llgesturemgr.cpp +++ b/indra/newview/llgesturemgr.cpp @@ -249,7 +249,7 @@ void LLGestureMgr::activateGestureWithAsset(const LLUUID& item_id,  												BOOL inform_server,  												BOOL deactivate_similar)  { -	const LLUUID& base_item_id = get_linked_uuid(item_id); +	const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);  	if( !gAssetStorage )  	{ @@ -303,7 +303,7 @@ void notify_update_label(const LLUUID& base_item_id)  void LLGestureMgr::deactivateGesture(const LLUUID& item_id)  { -	const LLUUID& base_item_id = get_linked_uuid(item_id); +	const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);  	item_map_t::iterator it = mActive.find(base_item_id);  	if (it == mActive.end())  	{ @@ -349,7 +349,7 @@ void LLGestureMgr::deactivateGesture(const LLUUID& item_id)  void LLGestureMgr::deactivateSimilarGestures(LLMultiGesture* in, const LLUUID& in_item_id)  { -	const LLUUID& base_in_item_id = get_linked_uuid(in_item_id); +	const LLUUID& base_in_item_id = gInventory.getLinkedItemID(in_item_id);  	uuid_vec_t gest_item_ids;  	// Deactivate all gestures that match @@ -436,7 +436,7 @@ void LLGestureMgr::deactivateSimilarGestures(LLMultiGesture* in, const LLUUID& i  BOOL LLGestureMgr::isGestureActive(const LLUUID& item_id)  { -	const LLUUID& base_item_id = get_linked_uuid(item_id); +	const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);  	item_map_t::iterator it = mActive.find(base_item_id);  	return (it != mActive.end());  } @@ -444,7 +444,7 @@ BOOL LLGestureMgr::isGestureActive(const LLUUID& item_id)  BOOL LLGestureMgr::isGesturePlaying(const LLUUID& item_id)  { -	const LLUUID& base_item_id = get_linked_uuid(item_id); +	const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);  	item_map_t::iterator it = mActive.find(base_item_id);  	if (it == mActive.end()) return FALSE; @@ -467,7 +467,7 @@ BOOL LLGestureMgr::isGesturePlaying(LLMultiGesture* gesture)  void LLGestureMgr::replaceGesture(const LLUUID& item_id, LLMultiGesture* new_gesture, const LLUUID& asset_id)  { -	const LLUUID& base_item_id = get_linked_uuid(item_id); +	const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);  	item_map_t::iterator it = mActive.find(base_item_id);  	if (it == mActive.end()) @@ -509,7 +509,7 @@ void LLGestureMgr::replaceGesture(const LLUUID& item_id, LLMultiGesture* new_ges  void LLGestureMgr::replaceGesture(const LLUUID& item_id, const LLUUID& new_asset_id)  { -	const LLUUID& base_item_id = get_linked_uuid(item_id); +	const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);  	item_map_t::iterator it = LLGestureMgr::instance().mActive.find(base_item_id);  	if (it == mActive.end()) @@ -604,7 +604,7 @@ void LLGestureMgr::playGesture(LLMultiGesture* gesture)  // Convenience function that looks up the item_id for you.  void LLGestureMgr::playGesture(const LLUUID& item_id)  { -	const LLUUID& base_item_id = get_linked_uuid(item_id); +	const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);  	item_map_t::iterator it = mActive.find(base_item_id);  	if (it == mActive.end()) return; @@ -1293,7 +1293,7 @@ void LLGestureMgr::stopGesture(LLMultiGesture* gesture)  void LLGestureMgr::stopGesture(const LLUUID& item_id)  { -	const LLUUID& base_item_id = get_linked_uuid(item_id); +	const LLUUID& base_item_id = gInventory.getLinkedItemID(item_id);  	item_map_t::iterator it = mActive.find(base_item_id);  	if (it == mActive.end()) return; diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp index 82da8a919b..60a6d2c1b2 100755 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -2306,13 +2306,3 @@ BOOL LLViewerInventoryItem::regenerateLink()  	gInventory.notifyObservers();  	return TRUE;  } - -const LLUUID& get_linked_uuid(const LLUUID &item_id) -{ -	LLViewerInventoryItem* item = gInventory.getItem(item_id); -	if (item && item->getIsLinkType()) -	{ -		return item->getLinkedUUID(); -	} -	return item_id; -} diff --git a/indra/newview/llviewerinventory.h b/indra/newview/llviewerinventory.h index 7823ebffb6..ca92565600 100755 --- a/indra/newview/llviewerinventory.h +++ b/indra/newview/llviewerinventory.h @@ -435,8 +435,4 @@ void slam_inventory_folder(const LLUUID& folder_id,  void remove_folder_contents(const LLUUID& folder_id, bool keep_outfit_links,  							  LLPointer<LLInventoryCallback> cb); -// If item is in the InventoryModel and is a link, get the item -// that this link points to. Otherwise just return this id. -const LLUUID& get_linked_uuid(const LLUUID &item_id); -  #endif // LL_LLVIEWERINVENTORY_H | 
