summaryrefslogtreecommitdiff
path: root/indra/llui/llcheckboxctrl.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/llcheckboxctrl.cpp
parent52a387e00f963d9920f36ffc0dcc855889f36cad (diff)
Linker optimization, use extern template for LLView::getChild<>
Diffstat (limited to 'indra/llui/llcheckboxctrl.cpp')
-rw-r--r--indra/llui/llcheckboxctrl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llui/llcheckboxctrl.cpp b/indra/llui/llcheckboxctrl.cpp
index 7f0f9751db..33630dbb5e 100644
--- a/indra/llui/llcheckboxctrl.cpp
+++ b/indra/llui/llcheckboxctrl.cpp
@@ -50,6 +50,10 @@ const U32 MAX_STRING_LENGTH = 10;
static LLDefaultChildRegistry::Register<LLCheckBoxCtrl> r("check_box");
+// Compiler optimization, generate extern template
+template class LLCheckBoxCtrl* LLView::getChild<class LLCheckBoxCtrl>(
+ const std::string& name, BOOL recurse) const;
+
LLCheckBoxCtrl::Params::Params()
: text_enabled_color("text_enabled_color"),
text_disabled_color("text_disabled_color"),