diff options
author | Don Kjer <don@lindenlab.com> | 2013-08-09 13:36:36 -0700 |
---|---|---|
committer | Don Kjer <don@lindenlab.com> | 2013-08-09 13:36:36 -0700 |
commit | 3ed3b88892adb4234c375d2d6bd5f0d2da5566c7 (patch) | |
tree | 177ec9fbf89342bb02d2563986d5fdfbda0ad79e /indra/newview/llagentwearablesfetch.cpp | |
parent | faa0866ca37313beae19e7f05e5917f4da0c1a0b (diff) |
Refactoring link creation calls in preparation for adding AIS v3 hook.
Diffstat (limited to 'indra/newview/llagentwearablesfetch.cpp')
-rwxr-xr-x | indra/newview/llagentwearablesfetch.cpp | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/indra/newview/llagentwearablesfetch.cpp b/indra/newview/llagentwearablesfetch.cpp index 014c610a5c..a2a667e660 100755 --- a/indra/newview/llagentwearablesfetch.cpp +++ b/indra/newview/llagentwearablesfetch.cpp @@ -117,26 +117,21 @@ public: // Link to all fetched items in COF. LLPointer<LLInventoryCallback> link_waiter = new LLUpdateAppearanceOnDestroy; + LLInventoryObject::const_object_list_t item_array; for (uuid_vec_t::iterator it = mIDs.begin(); it != mIDs.end(); ++it) { LLUUID id = *it; - LLViewerInventoryItem *item = gInventory.getItem(*it); + LLConstPointer<LLInventoryObject> item = gInventory.getItem(*it); if (!item) { - llwarns << "fetch failed!" << llendl; + llwarns << "fetch failed for item " << (*it) << "!" << llendl; continue; } - - link_inventory_item(gAgent.getID(), - item->getLinkedUUID(), - LLAppearanceMgr::instance().getCOF(), - item->getName(), - item->getDescription(), - LLAssetType::AT_LINK, - link_waiter); + item_array.push_back(item); } + link_inventory_array(LLAppearanceMgr::instance().getCOF(), item_array, link_waiter); } }; |