summaryrefslogtreecommitdiff
path: root/indra/llui/llbutton.cpp
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2009-11-25 22:00:15 -0800
committerJames Cook <james@lindenlab.com>2009-11-25 22:00:15 -0800
commit928b7cba3ec0eb675a254ff840f398b70e5a8a8c (patch)
tree47b2f999fb2416c89febdb870363da5c1810a1f3 /indra/llui/llbutton.cpp
parent52a387e00f963d9920f36ffc0dcc855889f36cad (diff)
Linker optimization, use extern template for LLView::getChild<>
Diffstat (limited to 'indra/llui/llbutton.cpp')
-rw-r--r--indra/llui/llbutton.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llui/llbutton.cpp b/indra/llui/llbutton.cpp
index b91c614424..ae25aec206 100644
--- a/indra/llui/llbutton.cpp
+++ b/indra/llui/llbutton.cpp
@@ -56,6 +56,10 @@
static LLDefaultChildRegistry::Register<LLButton> r("button");
+// Compiler optimization, generate extern template
+template class LLButton* LLView::getChild<class LLButton>(
+ const std::string& name, BOOL recurse) const;
+
// globals loaded from settings.xml
S32 LLBUTTON_H_PAD = 0;
S32 LLBUTTON_V_PAD = 0;