diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llviewerinventory.cpp | 22 |
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() : | |||
97 | LLViewerInventoryItem::LLViewerInventoryItem(const LLViewerInventoryItem* other) : | 97 | LLViewerInventoryItem::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 | 119 | void LLViewerInventoryItem::copyViewerItem(const LLViewerInventoryItem* other) |
120 | void 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 | ||
127 | void LLViewerInventoryItem::copy(const LLInventoryItem *other) | 126 | // virtual |
127 | void 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 | 134 | void LLViewerInventoryItem::cloneViewerItem(LLPointer<LLViewerInventoryItem>& newitem) const |
135 | void 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 | ||
349 | LLViewerInventoryCategory::LLViewerInventoryCategory(const LLViewerInventoryCategory* other) | 348 | LLViewerInventoryCategory::LLViewerInventoryCategory(const LLViewerInventoryCategory* other) |
350 | { | 349 | { |
351 | copy(other); | 350 | copyViewerCategory(other); |
352 | } | 351 | } |
353 | 352 | ||
354 | LLViewerInventoryCategory::~LLViewerInventoryCategory() | 353 | LLViewerInventoryCategory::~LLViewerInventoryCategory() |
355 | { | 354 | { |
356 | } | 355 | } |
357 | 356 | ||
358 | // virtual | 357 | void LLViewerInventoryCategory::copyViewerCategory(const LLViewerInventoryCategory* other) |
359 | void 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; |