summaryrefslogtreecommitdiff
path: root/indra/llui/llview.h
diff options
context:
space:
mode:
Diffstat (limited to 'indra/llui/llview.h')
-rw-r--r--indra/llui/llview.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/llui/llview.h b/indra/llui/llview.h
index 2e1d0e3868..130c3b52f7 100644
--- a/indra/llui/llview.h
+++ b/indra/llui/llview.h
@@ -518,7 +518,7 @@ public:
{
// need non-const to update private dummy widget cache
llwarns << "Making dummy " << xml_tag << " named " << name << " in " << getName() << llendl;
- const_cast<LLView*>(this)->mDummyWidgets.insert(std::make_pair(name, widget));
+ mDummyWidgets.insert(std::make_pair(name, widget));
}
else
{
@@ -646,7 +646,7 @@ private:
std::string mControlName;
typedef std::map<std::string, LLView*> dummy_widget_map_t;
- dummy_widget_map_t mDummyWidgets;
+ mutable dummy_widget_map_t mDummyWidgets;
boost::signals::connection mControlConnection;