summaryrefslogtreecommitdiff
path: root/indra/llcommon/llpointer.h
diff options
context:
space:
mode:
authorRichard Linden <none@none>2013-05-21 10:20:30 -0700
committerRichard Linden <none@none>2013-05-21 10:20:30 -0700
commit7aeac00e444ebf3fdc73bdc4be3c47bb9ae65e43 (patch)
tree292abe96c0b8a73cf1e41ad15fbe6d07791d2fb3 /indra/llcommon/llpointer.h
parent11cee0c140af90564f5616d3464f29abae4d585f (diff)
BUIDLFIX: trying to make gcc happy
Diffstat (limited to 'indra/llcommon/llpointer.h')
-rw-r--r--indra/llcommon/llpointer.h22
1 files changed, 4 insertions, 18 deletions
diff --git a/indra/llcommon/llpointer.h b/indra/llcommon/llpointer.h
index b9a9bf1ef0..3273a85af1 100644
--- a/indra/llcommon/llpointer.h
+++ b/indra/llcommon/llpointer.h
@@ -175,11 +175,11 @@ public:
{}
LLCopyOnWritePointer(Type* ptr)
- : LLPointer(ptr)
+ : LLPointer<Type>(ptr)
{}
LLCopyOnWritePointer(LLPointer<Type>& ptr)
- : LLPointer(ptr)
+ : LLPointer<Type>(ptr)
{}
Type* write()
@@ -190,25 +190,11 @@ public:
void makeUnique()
{
- if (notNull() && mPointer->getNumRefs() > 1)
+ if (LLPointer<Type>::notNull() && mPointer->getNumRefs() > 1)
{
- *(LLPointer*)(this) = new Type(*mPointer);
+ *(LLPointer<Type>*)(this) = new Type(*mPointer);
}
}
- /*operator BOOL() const { return (mPointer != NULL); }
- operator bool() const { return (mPointer != NULL); }
- bool operator!() const { return (mPointer == NULL); }
- bool isNull() const { return (mPointer == NULL); }
- bool notNull() const { return (mPointer != NULL); }
-
- bool operator !=(Type* ptr) const { return (mPointer != ptr); }
- bool operator ==(Type* ptr) const { return (mPointer == ptr); }
- bool operator ==(const LLCopyOnWritePointer<Type>& ptr) const { return (mPointer == ptr.mPointer); }
- bool operator < (const LLCopyOnWritePointer<Type>& ptr) const { return (mPointer < ptr.mPointer); }
- bool operator > (const LLCopyOnWritePointer<Type>& ptr) const { return (mPointer > ptr.mPointer); }
-
- operator const Type*() const { return mPointer; }
- const Type* operator->() const { return mPointer; }*/
};
#endif