aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llinventory
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/llinventory
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/llinventory')
-rw-r--r--linden/indra/llinventory/llinventory.cpp18
-rw-r--r--linden/indra/llinventory/llinventory.h8
2 files changed, 13 insertions, 13 deletions
diff --git a/linden/indra/llinventory/llinventory.cpp b/linden/indra/llinventory/llinventory.cpp
index e6c1175..3afa2be 100644
--- a/linden/indra/llinventory/llinventory.cpp
+++ b/linden/indra/llinventory/llinventory.cpp
@@ -99,7 +99,7 @@ LLInventoryObject::~LLInventoryObject( void )
99{ 99{
100} 100}
101 101
102void LLInventoryObject::copy(const LLInventoryObject* other) 102void LLInventoryObject::copyObject(const LLInventoryObject* other)
103{ 103{
104 mUUID = other->mUUID; 104 mUUID = other->mUUID;
105 mParentUUID = other->mParentUUID; 105 mParentUUID = other->mParentUUID;
@@ -309,7 +309,7 @@ LLInventoryItem::LLInventoryItem() :
309LLInventoryItem::LLInventoryItem(const LLInventoryItem* other) : 309LLInventoryItem::LLInventoryItem(const LLInventoryItem* other) :
310 LLInventoryObject() 310 LLInventoryObject()
311{ 311{
312 copy(other); 312 copyItem(other);
313} 313}
314 314
315LLInventoryItem::~LLInventoryItem() 315LLInventoryItem::~LLInventoryItem()
@@ -317,9 +317,9 @@ LLInventoryItem::~LLInventoryItem()
317} 317}
318 318
319// virtual 319// virtual
320void LLInventoryItem::copy(const LLInventoryItem* other) 320void LLInventoryItem::copyItem(const LLInventoryItem* other)
321{ 321{
322 LLInventoryObject::copy(other); 322 copyObject(other);
323 mPermissions = other->mPermissions; 323 mPermissions = other->mPermissions;
324 mAssetUUID = other->mAssetUUID; 324 mAssetUUID = other->mAssetUUID;
325 mDescription = other->mDescription; 325 mDescription = other->mDescription;
@@ -331,10 +331,10 @@ void LLInventoryItem::copy(const LLInventoryItem* other)
331 331
332// As a constructor alternative, the clone() method works like a 332// As a constructor alternative, the clone() method works like a
333// copy constructor, but gens a new UUID. 333// copy constructor, but gens a new UUID.
334void LLInventoryItem::clone(LLPointer<LLInventoryItem>& newitem) const 334void LLInventoryItem::cloneItem(LLPointer<LLInventoryItem>& newitem) const
335{ 335{
336 newitem = new LLInventoryItem; 336 newitem = new LLInventoryItem;
337 newitem->copy(this); 337 newitem->copyItem(this);
338 newitem->mUUID.generate(); 338 newitem->mUUID.generate();
339} 339}
340 340
@@ -1334,7 +1334,7 @@ LLInventoryCategory::LLInventoryCategory() :
1334LLInventoryCategory::LLInventoryCategory(const LLInventoryCategory* other) : 1334LLInventoryCategory::LLInventoryCategory(const LLInventoryCategory* other) :
1335 LLInventoryObject() 1335 LLInventoryObject()
1336{ 1336{
1337 copy(other); 1337 copyCategory(other);
1338} 1338}
1339 1339
1340LLInventoryCategory::~LLInventoryCategory() 1340LLInventoryCategory::~LLInventoryCategory()
@@ -1342,9 +1342,9 @@ LLInventoryCategory::~LLInventoryCategory()
1342} 1342}
1343 1343
1344// virtual 1344// virtual
1345void LLInventoryCategory::copy(const LLInventoryCategory* other) 1345void LLInventoryCategory::copyCategory(const LLInventoryCategory* other)
1346{ 1346{
1347 LLInventoryObject::copy(other); 1347 copyObject(other);
1348 mPreferredType = other->mPreferredType; 1348 mPreferredType = other->mPreferredType;
1349} 1349}
1350 1350
diff --git a/linden/indra/llinventory/llinventory.h b/linden/indra/llinventory/llinventory.h
index 3662d63..1623edf 100644
--- a/linden/indra/llinventory/llinventory.h
+++ b/linden/indra/llinventory/llinventory.h
@@ -85,7 +85,7 @@ public:
85 LLInventoryObject(const LLUUID& uuid, const LLUUID& parent_uuid, 85 LLInventoryObject(const LLUUID& uuid, const LLUUID& parent_uuid,
86 LLAssetType::EType type, const LLString& name); 86 LLAssetType::EType type, const LLString& name);
87 LLInventoryObject(); 87 LLInventoryObject();
88 virtual void copy(const LLInventoryObject* other); // LLRefCount requires custom copy 88 void copyObject(const LLInventoryObject* other); // LLRefCount requires custom copy
89 89
90 // accessors 90 // accessors
91 const LLUUID& getUUID() const; 91 const LLUUID& getUUID() const;
@@ -194,12 +194,12 @@ public:
194 // Note: Because InventoryItems are ref counted, reference copy (a = b) 194 // Note: Because InventoryItems are ref counted, reference copy (a = b)
195 // is prohibited 195 // is prohibited
196 LLInventoryItem(const LLInventoryItem* other); 196 LLInventoryItem(const LLInventoryItem* other);
197 virtual void copy(const LLInventoryItem* other); // LLRefCount requires custom copy 197 virtual void copyItem(const LLInventoryItem* other); // LLRefCount requires custom copy
198 198
199 // As a constructor alternative, the clone() method works like a 199 // As a constructor alternative, the clone() method works like a
200 // copy constructor, but gens a new UUID. 200 // copy constructor, but gens a new UUID.
201 // It is up to the caller to delete (unref) the item. 201 // It is up to the caller to delete (unref) the item.
202 virtual void clone(LLPointer<LLInventoryItem>& newitem) const; 202 virtual void cloneItem(LLPointer<LLInventoryItem>& newitem) const;
203 203
204 // accessors 204 // accessors
205 const LLPermissions& getPermissions() const; 205 const LLPermissions& getPermissions() const;
@@ -278,7 +278,7 @@ public:
278 const LLString& name); 278 const LLString& name);
279 LLInventoryCategory(); 279 LLInventoryCategory();
280 LLInventoryCategory(const LLInventoryCategory* other); 280 LLInventoryCategory(const LLInventoryCategory* other);
281 virtual void copy(const LLInventoryCategory* other); // LLRefCount requires custom copy 281 void copyCategory(const LLInventoryCategory* other); // LLRefCount requires custom copy
282 282
283 // accessors and mutators 283 // accessors and mutators
284 LLAssetType::EType getPreferredType() const; 284 LLAssetType::EType getPreferredType() const;