diff options
author | Richard Linden <none@none> | 2013-05-20 18:56:40 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2013-05-20 18:56:40 -0700 |
commit | 13f43fdc5bd046f7857f06254c84b8993bdcc50a (patch) | |
tree | a740357df64410ce60ff5349c62c27f32cb24197 /indra/llcommon | |
parent | 1225a7a3cc29e3b6429fa0af87204599e98bee3e (diff) |
BUILDFIX: mac gcc fix
Diffstat (limited to 'indra/llcommon')
-rw-r--r-- | indra/llcommon/llsingleton.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llcommon/llsingleton.h b/indra/llcommon/llsingleton.h index 1e87d9bd7b..b9cb8e3d41 100644 --- a/indra/llcommon/llsingleton.h +++ b/indra/llcommon/llsingleton.h @@ -67,6 +67,11 @@ private: INITIALIZED, DELETED } EInitState; + + static DERIVED_TYPE* constructSingleton() + { + return new DERIVED_TYPE(); + } // stores pointer to singleton instance struct SingletonLifetimeManager @@ -79,7 +84,7 @@ private: static void construct() { sData.mInitState = CONSTRUCTING; - sData.mInstance = new DERIVED_TYPE(); + sData.mInstance = constructSingleton(); sData.mInitState = INITIALIZING; } |