summaryrefslogtreecommitdiff
path: root/indra/llui/llview.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-12-01 08:51:32 -0800
committerJames Cook <james@lindenlab.com>2009-12-01 08:51:32 -0800
commit5e11affddb1b8816f57f9314381486c00033e080 (patch)
treeb21e2486be2daaa9b249588ce7d88f0f9f472814 /indra/llui/llview.h
parent677938e6531209ca9ccd29146454af67f1c743c7 (diff)
parentbf34e572e7acd0f80d103318b76b4abe32c802d3 (diff)
merge
Diffstat (limited to 'indra/llui/llview.h')
-rw-r--r--indra/llui/llview.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/indra/llui/llview.h b/indra/llui/llview.h
index 2607120e17..d485244a05 100644
--- a/indra/llui/llview.h
+++ b/indra/llui/llview.h
@@ -111,10 +111,7 @@ public:
Alternative<std::string> string;
Alternative<U32> flags;
- Follows()
- : string(""),
- flags("flags", FOLLOWS_LEFT | FOLLOWS_TOP)
- {}
+ Follows();
};
struct Params : public LLInitParam::Block<Params>
@@ -659,4 +656,11 @@ template <class T> T* LLView::getChild(const std::string& name, BOOL recurse) co
return result;
}
+// Compiler optimization - don't generate these specializations inline,
+// require explicit specialization. See llbutton.cpp for an example.
+#ifndef LLVIEW_CPP
+extern template class LLView* LLView::getChild<class LLView>(
+ const std::string& name, BOOL recurse) const;
+#endif
+
#endif //LL_LLVIEW_H