diff options
Diffstat (limited to 'indra/newview/llviewerinventory.cpp')
-rw-r--r-- | indra/newview/llviewerinventory.cpp | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/indra/newview/llviewerinventory.cpp b/indra/newview/llviewerinventory.cpp index 5f61aeaf13..e2022cae37 100644 --- a/indra/newview/llviewerinventory.cpp +++ b/indra/newview/llviewerinventory.cpp @@ -71,9 +71,6 @@ #include "llclipboard.h" #include "llhttpretrypolicy.h" #include "llsettingsvo.h" -#include "llinventorylistener.h" - -LLInventoryListener sInventoryListener; // do-nothing ops for use in callbacks. void no_op_inventory_func(const LLUUID&) {} @@ -754,11 +751,13 @@ S32 LLViewerInventoryCategory::getViewerDescendentCount() const return descendents_actual; } -void LLViewerInventoryCategory::exportLLSD(LLSD & cat_data) const +LLSD LLViewerInventoryCategory::exportLLSD() const { - LLInventoryCategory::exportLLSD(cat_data); + LLSD cat_data = LLInventoryCategory::exportLLSD(); cat_data[INV_OWNER_ID] = mOwnerID; cat_data[INV_VERSION] = mVersion; + + return cat_data; } bool LLViewerInventoryCategory::importLLSD(const LLSD& cat_data) @@ -967,7 +966,7 @@ void LLInventoryCallbackManager::fire(U32 callback_id, const LLUUID& item_id) } } -void rez_attachment_cb(const LLUUID& inv_item, LLViewerJointAttachment *attachmentp, bool replace) +void rez_attachment_cb(const LLUUID& inv_item, LLViewerJointAttachment *attachmentp) { if (inv_item.isNull()) return; @@ -975,7 +974,7 @@ void rez_attachment_cb(const LLUUID& inv_item, LLViewerJointAttachment *attachme LLViewerInventoryItem *item = gInventory.getItem(inv_item); if (item) { - rez_attachment(item, attachmentp, replace); + rez_attachment(item, attachmentp); } } @@ -1437,8 +1436,7 @@ void update_inventory_category( if(obj) { if (LLFolderType::lookupIsProtectedType(obj->getPreferredType()) - && (updates.size() != 1 - || !(updates.has("thumbnail") || updates.has("favorite")))) + && (updates.size() != 1 || !updates.has("thumbnail"))) { LLNotificationsUtil::add("CannotModifyProtectedCategories"); return; |