summaryrefslogtreecommitdiff
path: root/indra/llxuixml
diff options
context:
space:
mode:
authorRichard Linden <none@none>2012-06-22 14:13:20 -0700
committerRichard Linden <none@none>2012-06-22 14:13:20 -0700
commit74092930afdc294ef4d204830173d4750a310616 (patch)
treeda79a26e843f70771f5c448ea82d76f9c097fb41 /indra/llxuixml
parent4775084000233ec9f0770f421771215397b987e7 (diff)
CHUI-101 WIP Make LLFolderView general purpose
build fix for gcc added detection of duplicate widget registration
Diffstat (limited to 'indra/llxuixml')
-rw-r--r--indra/llxuixml/llregistry.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/indra/llxuixml/llregistry.h b/indra/llxuixml/llregistry.h
index 36ce6a97b7..3e8d9267cc 100644
--- a/indra/llxuixml/llregistry.h
+++ b/indra/llxuixml/llregistry.h
@@ -302,6 +302,10 @@ public:
virtual ~StaticRegistrar() {}
StaticRegistrar(ref_const_key_t key, ref_const_value_t value)
{
+ if (singleton_t::instance().exists(key))
+ {
+ llerrs << "Duplicate registry entry under key \"" << key << "\"" << llendl;
+ }
singleton_t::instance().mStaticScope->add(key, value);
}
};