diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llcommon/llpointer.h | 3 | ||||
| -rw-r--r-- | indra/llcommon/lltrace.h | 2 | 
2 files changed, 5 insertions, 0 deletions
diff --git a/indra/llcommon/llpointer.h b/indra/llcommon/llpointer.h index c83e55577d..e640ffd595 100644 --- a/indra/llcommon/llpointer.h +++ b/indra/llcommon/llpointer.h @@ -196,6 +196,9 @@ public:  			*(pointer_t*)(this) = new Type(*pointer_t::mPointer);  		}  	} + +	const Type*	operator->() const	{ return pointer_t::mPointer; } +	const Type&	operator*() const	{ return *pointer_t::mPointer; }  };  #endif diff --git a/indra/llcommon/lltrace.h b/indra/llcommon/lltrace.h index f94576de45..e950a119d3 100644 --- a/indra/llcommon/lltrace.h +++ b/indra/llcommon/lltrace.h @@ -175,10 +175,12 @@ public:  	// NOTE: this is not thread-safe.  We assume that slots are reserved in the main thread before any child threads are spawned  	size_t reserveSlot()  	{ +#ifndef LL_RELEASE_FOR_DOWNLOAD  		if (LLTrace::isInitialized())  		{  			llerrs << "Attempting to declare trace object after program initialization.  Trace objects should be statically initialized." << llendl;  		} +#endif  		size_t next_slot = sNextStorageSlot++;  		if (next_slot >= mStorageSize)  		{  | 
