summaryrefslogtreecommitdiff
path: root/indra/newview/llinventorymodel.h
diff options
context:
space:
mode:
authorAlexander Gavriliuk <alexandrgproductengine@lindenlab.com>2023-12-07 16:53:21 +0100
committerGuru <alexandrgproductengine@lindenlab.com>2023-12-07 21:49:51 +0100
commit1aebbd397ba33442fe5dd856d507c8e851d6f9b7 (patch)
tree9a47789cb68624d141b540390f60113d235691ec /indra/newview/llinventorymodel.h
parent8b9c44b2155785ead99c7e99a21348a0712ccb15 (diff)
SL-20682 renaming of folders seems to fail (but doesn't really)
Diffstat (limited to 'indra/newview/llinventorymodel.h')
-rw-r--r--indra/newview/llinventorymodel.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/indra/newview/llinventorymodel.h b/indra/newview/llinventorymodel.h
index 69d987cabd..41faafa6bb 100644
--- a/indra/newview/llinventorymodel.h
+++ b/indra/newview/llinventorymodel.h
@@ -511,12 +511,14 @@ public:
// Represents the number of items added or removed from a category.
struct LLCategoryUpdate
{
- LLCategoryUpdate() : mDescendentDelta(0) {}
- LLCategoryUpdate(const LLUUID& category_id, S32 delta) :
+ LLCategoryUpdate() : mDescendentDelta(0), mChangeVersion(true) {}
+ LLCategoryUpdate(const LLUUID& category_id, S32 delta, bool change_version = true) :
mCategoryID(category_id),
- mDescendentDelta(delta) {}
+ mDescendentDelta(delta),
+ mChangeVersion(change_version) {}
LLUUID mCategoryID;
S32 mDescendentDelta;
+ bool mChangeVersion;
};
typedef std::vector<LLCategoryUpdate> update_list_t;
@@ -534,8 +536,8 @@ public:
// Call when there are category updates. Call them *before* the
// actual update so the method can do descendent accounting correctly.
void accountForUpdate(const LLCategoryUpdate& update) const;
- void accountForUpdate(const update_list_t& updates);
- void accountForUpdate(const update_map_t& updates);
+ void accountForUpdate(const update_list_t& updates) const;
+ void accountForUpdate(const update_map_t& updates) const;
// Return (yes/no/maybe) child status of category children.
EHasChildren categoryHasChildren(const LLUUID& cat_id) const;