diff --git a/indra/newview/fsfloaterimport.cpp b/indra/newview/fsfloaterimport.cpp index 4f74c35983..79375ff344 100644 --- a/indra/newview/fsfloaterimport.cpp +++ b/indra/newview/fsfloaterimport.cpp @@ -1225,7 +1225,7 @@ void FSFloaterImport::uploadAsset(LLUUID asset_id, LLUUID inventory_item) { url = gAgent.getRegion()->getCapability("NewFileAgentInventory"); new_file_agent_inventory = true; - LLTrace::add(LLVStatViewer::UPLOAD_SOUND,1); + LLTrace::add(LLStatViewer::UPLOAD_SOUND,1); } } @@ -1341,7 +1341,7 @@ void FSFloaterImport::uploadAsset(LLUUID asset_id, LLUUID inventory_item) { url = gAgent.getRegion()->getCapability("NewFileAgentInventory"); new_file_agent_inventory = true; - LLTrace::add(LLStatViewer::UPLOAD_ANIM_COUNT,1); + LLTrace::add(LLStatViewer::ANIMATION_UPLOADS,1); } } break; diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index 9e08e3b812..0af1506956 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -1230,7 +1230,7 @@ static void removeDuplicateWearableItemsByAssetID(LLInventoryModel::item_array_t if (idsAsset.end() == idsAsset.find(pItem->getAssetUUID())) idsAsset.insert(pItem->getAssetUUID()); else - items.remove(idxItem); + items.erase(items.begin()+idxItem); } } // [/SL:KB] @@ -1500,7 +1500,16 @@ void LLAppearanceMgr::takeOffOutfit(const LLUUID& cat_id) { LL_INFOS() << "reinserting bridge at outfit remove" << LL_ENDL; //items.find(FSLSLBridge::instance().getBridge()); - items.removeObj(FSLSLBridge::instance().getBridge()); + for (LLInventoryModel::item_array_t::iterator i = items.begin(); i != items.end(); ++i) + { + LLViewerInventoryItem *item = *i; + + if (item->getName() == FSLSLBridge::instance().currentFullName()) + { + items.erase( i ); + break; + } + } } } // @@ -3112,13 +3121,13 @@ void LLAppearanceMgr::updateIsDirty() LLInventoryModel::EXCLUDE_TRASH, collector); // FIRE-3018: Ignore the bridge when checking for dirty. - for (U32 i = 0; i < cof_items.size(); ++i) + for (LLInventoryModel::item_array_t::iterator i = cof_items.begin(); i != cof_items.end(); ++i) { - LLViewerInventoryItem *item = cof_items.at(i); + LLViewerInventoryItem *item = *i; if (item->getName() == FSLSLBridge::instance().currentFullName()) { - cof_items.remove(i); + cof_items.erase( i ); break; } }