Skip to content
Snippets Groups Projects
Commit 269fb97e authored by Richard Linden's avatar Richard Linden
Browse files

BUILDFIX: gcc fixes

parent 7aeac00e
No related branches found
No related tags found
No related merge requests found
...@@ -170,7 +170,8 @@ class LLCopyOnWritePointer : public LLPointer<Type> ...@@ -170,7 +170,8 @@ class LLCopyOnWritePointer : public LLPointer<Type>
{ {
public: public:
typedef LLCopyOnWritePointer<Type> self_t; typedef LLCopyOnWritePointer<Type> self_t;
typedef LLPointer<Type> pointer_t;
LLCopyOnWritePointer() LLCopyOnWritePointer()
{} {}
...@@ -185,14 +186,14 @@ class LLCopyOnWritePointer : public LLPointer<Type> ...@@ -185,14 +186,14 @@ class LLCopyOnWritePointer : public LLPointer<Type>
Type* write() Type* write()
{ {
makeUnique(); makeUnique();
return mPointer; return pointer_t::mPointer;
} }
void makeUnique() void makeUnique()
{ {
if (LLPointer<Type>::notNull() && mPointer->getNumRefs() > 1) if (pointer_t::notNull() && pointer_t::mPointer->getNumRefs() > 1)
{ {
*(LLPointer<Type>*)(this) = new Type(*mPointer); *(pointer_t*)(this) = new Type(*pointer_t::mPointer);
} }
} }
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment