aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llviewerinventory.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:37 -0500
committerJacek Antonelli2008-08-15 23:45:37 -0500
commit31ba05810c641f14e8ab5da8ad2aaf527779f6c1 (patch)
treec4b8d635dfb657fa4cfee7c285f8cadbf24afa90 /linden/indra/newview/llviewerinventory.cpp
parentSecond Life viewer sources 1.19.1.1 (diff)
downloadmeta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.zip
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.gz
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.bz2
meta-impy-31ba05810c641f14e8ab5da8ad2aaf527779f6c1.tar.xz
Second Life viewer sources 1.19.1.2
Diffstat (limited to 'linden/indra/newview/llviewerinventory.cpp')
-rw-r--r--linden/indra/newview/llviewerinventory.cpp22
1 files changed, 10 insertions, 12 deletions
diff --git a/linden/indra/newview/llviewerinventory.cpp b/linden/indra/newview/llviewerinventory.cpp
index bbd6cd4..db005c7 100644
--- a/linden/indra/newview/llviewerinventory.cpp
+++ b/linden/indra/newview/llviewerinventory.cpp
@@ -97,7 +97,7 @@ LLViewerInventoryItem::LLViewerInventoryItem() :
97LLViewerInventoryItem::LLViewerInventoryItem(const LLViewerInventoryItem* other) : 97LLViewerInventoryItem::LLViewerInventoryItem(const LLViewerInventoryItem* other) :
98 LLInventoryItem() 98 LLInventoryItem()
99{ 99{
100 copy(other); 100 copyViewerItem(other);
101 if (!mIsComplete) 101 if (!mIsComplete)
102 { 102 {
103 llwarns << "LLViewerInventoryItem copy constructor for incomplete item" 103 llwarns << "LLViewerInventoryItem copy constructor for incomplete item"
@@ -116,23 +116,22 @@ LLViewerInventoryItem::~LLViewerInventoryItem()
116{ 116{
117} 117}
118 118
119// virtual 119void LLViewerInventoryItem::copyViewerItem(const LLViewerInventoryItem* other)
120void LLViewerInventoryItem::copy(const LLViewerInventoryItem* other)
121{ 120{
122 LLInventoryItem::copy(other); 121 LLInventoryItem::copyItem(other);
123 mIsComplete = other->mIsComplete; 122 mIsComplete = other->mIsComplete;
124 mTransactionID = other->mTransactionID; 123 mTransactionID = other->mTransactionID;
125} 124}
126 125
127void LLViewerInventoryItem::copy(const LLInventoryItem *other) 126// virtual
127void LLViewerInventoryItem::copyItem(const LLInventoryItem *other)
128{ 128{
129 LLInventoryItem::copy(other); 129 LLInventoryItem::copyItem(other);
130 mIsComplete = true; 130 mIsComplete = true;
131 mTransactionID.setNull(); 131 mTransactionID.setNull();
132} 132}
133 133
134// virtual 134void LLViewerInventoryItem::cloneViewerItem(LLPointer<LLViewerInventoryItem>& newitem) const
135void LLViewerInventoryItem::clone(LLPointer<LLViewerInventoryItem>& newitem) const
136{ 135{
137 newitem = new LLViewerInventoryItem(this); 136 newitem = new LLViewerInventoryItem(this);
138 if(newitem.notNull()) 137 if(newitem.notNull())
@@ -348,17 +347,16 @@ LLViewerInventoryCategory::LLViewerInventoryCategory(const LLUUID& owner_id) :
348 347
349LLViewerInventoryCategory::LLViewerInventoryCategory(const LLViewerInventoryCategory* other) 348LLViewerInventoryCategory::LLViewerInventoryCategory(const LLViewerInventoryCategory* other)
350{ 349{
351 copy(other); 350 copyViewerCategory(other);
352} 351}
353 352
354LLViewerInventoryCategory::~LLViewerInventoryCategory() 353LLViewerInventoryCategory::~LLViewerInventoryCategory()
355{ 354{
356} 355}
357 356
358// virtual 357void LLViewerInventoryCategory::copyViewerCategory(const LLViewerInventoryCategory* other)
359void LLViewerInventoryCategory::copy(const LLViewerInventoryCategory* other)
360{ 358{
361 LLInventoryCategory::copy(other); 359 copyCategory(other);
362 mOwnerID = other->mOwnerID; 360 mOwnerID = other->mOwnerID;
363 mVersion = other->mVersion; 361 mVersion = other->mVersion;
364 mDescendentCount = other->mDescendentCount; 362 mDescendentCount = other->mDescendentCount;