diff options
| author | Oz Linden <oz@lindenlab.com> | 2011-05-13 13:28:51 -0400 | 
|---|---|---|
| committer | Oz Linden <oz@lindenlab.com> | 2011-05-13 13:28:51 -0400 | 
| commit | 66c078de5e5a6b685d435f7b1a462d64ca80f35e (patch) | |
| tree | a1fe4ac67d499a565ea98b390dedbeef0a62acc2 /indra/llxml/llcontrol.cpp | |
| parent | 27fd0d1a93da8a2ad1aa445e8d8258f9e910ae8c (diff) | |
| parent | e8ede07451c65aea898bc3f58a980b6b0d9af302 (diff) | |
merge up to latest viewer-development
Diffstat (limited to 'indra/llxml/llcontrol.cpp')
| -rw-r--r-- | indra/llxml/llcontrol.cpp | 6 | 
1 files changed, 2 insertions, 4 deletions
| diff --git a/indra/llxml/llcontrol.cpp b/indra/llxml/llcontrol.cpp index 6e4364a20d..0809d95628 100644 --- a/indra/llxml/llcontrol.cpp +++ b/indra/llxml/llcontrol.cpp @@ -837,9 +837,7 @@ U32 LLControlGroup::saveToFile(const std::string& filename, BOOL nondefault_only  U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_values, bool save_values)  { -	std::string name;  	LLSD settings; -	LLSD control_map;  	llifstream infile;  	infile.open(filename);  	if(!infile.is_open()) @@ -863,8 +861,8 @@ U32 LLControlGroup::loadFromFile(const std::string& filename, bool set_default_v  	for(LLSD::map_const_iterator itr = settings.beginMap(); itr != settings.endMap(); ++itr)  	{  		bool persist = true; -		name = (*itr).first; -		control_map = (*itr).second; +		std::string const & name = itr->first; +		LLSD const & control_map = itr->second;  		if(control_map.has("Persist"))   		{ | 
