diff options
author | Richard Linden <none@none> | 2010-04-27 16:08:56 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2010-04-27 16:08:56 -0700 |
commit | fbc0e795b114ddbfb73cc62ce25a1e9a1cafacba (patch) | |
tree | eae093fa71b3fbe7c6901fc3326785102627a65f /indra/llui/lluictrlfactory.cpp | |
parent | 48b3ac20d99e842b6d7adba63e9fa75a7d5cd82c (diff) |
added empty param blocks to registered widgets that didn't have them
made LLDefaultChildRegistry::Register errors actually crash the client...llerrs doesn't work in static initializers
Diffstat (limited to 'indra/llui/lluictrlfactory.cpp')
-rw-r--r-- | indra/llui/lluictrlfactory.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/llui/lluictrlfactory.cpp b/indra/llui/lluictrlfactory.cpp index 27237800d4..930dadc377 100644 --- a/indra/llui/lluictrlfactory.cpp +++ b/indra/llui/lluictrlfactory.cpp @@ -435,7 +435,10 @@ void LLUICtrlFactory::registerWidget(const std::type_info* widget_type, const st std::string* existing_tag = LLWidgetNameRegistry::instance().getValue(param_block_type); if (existing_tag != NULL && *existing_tag != tag) { - llerrs << "Duplicate entry for T::Params, try creating empty param block in derived classes that inherit T::Params" << llendl; + std::cerr << "Duplicate entry for T::Params, try creating empty param block in derived classes that inherit T::Params" << std::endl; + // forcing crash here + char* foo = 0; + *foo = 1; } LLWidgetNameRegistry ::instance().defaultRegistrar().add(param_block_type, tag); // associate widget type with factory function |