diff --git a/indra/newview/llagentwearables.cpp b/indra/newview/llagentwearables.cpp index aae89dbd3..446626b5e 100644 --- a/indra/newview/llagentwearables.cpp +++ b/indra/newview/llagentwearables.cpp @@ -701,7 +701,7 @@ void LLAgentWearables::wearableUpdated(LLWearable *wearable, BOOL removed) { LL_INFOS() << "forcing wearable type " << wearable->getType() << " to version 22 from 24" << LL_ENDL; wearable->setDefinitionVersion(22); - saveWearable(wearable->getType(),index,TRUE); + saveWearable(wearable->getType(),index); } } diff --git a/indra/newview/llagentwearables.h b/indra/newview/llagentwearables.h index c42734213..51825b9a2 100644 --- a/indra/newview/llagentwearables.h +++ b/indra/newview/llagentwearables.h @@ -174,7 +174,7 @@ private: //-------------------------------------------------------------------- public: LLViewerWearable* saveWearableAs(const LLWearableType::EType type, const U32 index, const std::string& new_name, const std::string& description, BOOL save_in_lost_and_found); - void saveWearable(const LLWearableType::EType type, const U32 index, BOOL send_update = TRUE, + void saveWearable(const LLWearableType::EType type, const U32 index, const std::string new_name = ""); void saveAllWearables(); void revertWearable(const LLWearableType::EType type, const U32 index); diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index cc54f85be..24b94286f 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -1430,7 +1430,7 @@ const LLUUID LLAppearanceMgr::getBaseOutfitUUID() return outfit_cat->getUUID(); } -void wear_on_avatar_cb(const LLUUID& inv_item, bool do_replace = false) +void wear_on_avatar_cb(const LLUUID& inv_item, bool do_replace /*= false*/) { if (inv_item.isNull()) return; @@ -4441,7 +4441,7 @@ void LLAppearanceMgr::removeItemsFromAvatar(const uuid_vec_t& ids_to_remove, LLP cb = new LLUpdateAppearanceOnDestroy(); removeCOFItemLinks(linked_item_id, cb, immediate_delete); // [SL:KB] - Patch: Appearance-SyncAttach | Checked: 2015-03-01 (Catznip-3.7) - clearPendingAttachment(linked_item_id); + LLAttachmentsMgr::instance().clearPendingAttachmentLink(linked_item_id); // [/SL:KB] addDoomedTempAttachment(linked_item_id); } diff --git a/indra/newview/llinventoryfunctions.cpp b/indra/newview/llinventoryfunctions.cpp index e79d75679..903e2f703 100644 --- a/indra/newview/llinventoryfunctions.cpp +++ b/indra/newview/llinventoryfunctions.cpp @@ -300,7 +300,7 @@ BOOL get_can_item_be_worn(const LLUUID& id) if (!item) return FALSE; - if (LLAppearanceMgr::isLinkedInCOF(item->getLinkedUUID())) + if (LLAppearanceMgr::instance().isLinkedInCOF(item->getLinkedUUID())) { // an item having links in COF (i.e. a worn item) return FALSE; diff --git a/indra/newview/llpaneleditwearable.cpp b/indra/newview/llpaneleditwearable.cpp index 497dc1e14..b0935ea99 100644 --- a/indra/newview/llpaneleditwearable.cpp +++ b/indra/newview/llpaneleditwearable.cpp @@ -1284,7 +1284,7 @@ void LLPanelEditWearable::saveChanges(bool force_save_as, std::string new_name) remove_inventory_item(link_item, NULL); } - gAgentWearables.saveWearable(mType, index, TRUE, new_name); + gAgentWearables.saveWearable(mType, index, new_name); } } diff --git a/indra/newview/rlvhelper.cpp b/indra/newview/rlvhelper.cpp index 874a35958..370e734a5 100644 --- a/indra/newview/rlvhelper.cpp +++ b/indra/newview/rlvhelper.cpp @@ -96,7 +96,7 @@ bool RlvCommand::parseCommand(const std::string& strCommand, std::string& strBeh strOption = strParam = ""; // If is missing it's an improperly formatted command - if ( (-1 == idxParam) || ((int)strCommand.length() - 1 == idxParam) ) + if ( (-1 == idxParam) || (static_cast(strCommand.length()) - 1 == idxParam) ) { // Unless " == "clear" AND (idxOption == 0)" // OR == "clear" AND (idxParam != 0) [see table above] @@ -187,12 +187,12 @@ void RlvCommand::initLookupTable() // // Checked: 2010-09-28 (RLVa-1.2.1c) | Added: RLVa-1.2.1c -RlvCommandOptionGeneric::RlvCommandOptionGeneric(const std::string& strOption) +RlvCommandOptionGeneric::RlvCommandOptionGeneric(const std::string& strOption): m_fEmpty(false) { LLWearableType::EType wtType(LLWearableType::WT_INVALID); LLUUID idOption; ERlvAttachGroupType eAttachGroup(RLV_ATTACHGROUP_INVALID); LLViewerJointAttachment* pAttachPt = NULL; LLViewerInventoryCategory* pFolder = NULL; - if (!(m_fEmpty = strOption.empty())) //