summaryrefslogtreecommitdiff
path: root/indra/newview/llviewercamera.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-11-28 16:51:02 -0800
committerJames Cook <james@lindenlab.com>2009-11-28 16:51:02 -0800
commitf280c43d616d013747a9aab05141635868e00136 (patch)
tree22a502368ea5c0526fab30caf7679cff42272cdb /indra/newview/llviewercamera.h
parentfd71800bb1c68c5d06199cf06de469ab7acdd2dc (diff)
Use extern template for common singletons to reduce code bloat/link time.
Diffstat (limited to 'indra/newview/llviewercamera.h')
-rw-r--r--indra/newview/llviewercamera.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llviewercamera.h b/indra/newview/llviewercamera.h
index 2b8a0892bf..01fa86d7c5 100644
--- a/indra/newview/llviewercamera.h
+++ b/indra/newview/llviewercamera.h
@@ -52,6 +52,9 @@ const F32 OGL_TO_CFR_ROTATION[16] = { 0.f, 0.f, -1.f, 0.f, // -Z becomes X
const BOOL FOR_SELECTION = TRUE;
const BOOL NOT_FOR_SELECTION = FALSE;
+// Build time optimization, generate this once in .cpp file
+extern template class LLViewerCamera* LLSingleton<class LLViewerCamera>::getInstance();
+
class LLViewerCamera : public LLCamera, public LLSingleton<LLViewerCamera>
{
public: