diff options
| author | Todd Stinson <stinson@lindenlab.com> | 2012-07-26 18:59:27 -0700 | 
|---|---|---|
| committer | Todd Stinson <stinson@lindenlab.com> | 2012-07-26 18:59:27 -0700 | 
| commit | e97d0f4195b3c9ee7e57ecf4822ef208f76e7a99 (patch) | |
| tree | 8bfe52c61b8b9991a4aa794162716a44d721919d | |
| parent | 1e65ba1f909604b027cb7dee5631f698a9f550a8 (diff) | |
| parent | 797825a22219fc6b83c40aedaa58f806698bbac3 (diff) | |
Pull and merge from ssh://stinson@hg.lindenlab.com/richard/viewer-chui/.
| -rw-r--r-- | indra/llxuixml/llinitparam.h | 36 | ||||
| -rw-r--r-- | indra/newview/llinventoryfilter.cpp | 2 | 
2 files changed, 33 insertions, 5 deletions
| diff --git a/indra/llxuixml/llinitparam.h b/indra/llxuixml/llinitparam.h index 606676be2c..71cd550693 100644 --- a/indra/llxuixml/llinitparam.h +++ b/indra/llxuixml/llinitparam.h @@ -2015,10 +2015,12 @@ namespace LLInitParam  			}  		}; -		class Deprecated : public Param +		// can appear in data files, but will ignored during parsing +		// cannot read or write in code +		class Ignored : public Param  		{  		public: -			explicit Deprecated(const char* name) +			explicit Ignored(const char* name)  			:	Param(DERIVED_BLOCK::getBlockDescriptor().mCurrentBlockPtr)  			{  				BlockDescriptor& block_descriptor = DERIVED_BLOCK::getBlockDescriptor(); @@ -2049,8 +2051,34 @@ namespace LLInitParam  			}  		}; -		// different semantics for documentation purposes, but functionally identical -		typedef Deprecated Ignored; +		// can appear in data files, or be written to in code, but data will be ignored +		// cannot be read in code +		class Deprecated : public Ignored +		{ +		public: +			explicit Deprecated(const char* name) : Ignored(name) {} + +			// dummy writer interfaces +			template<typename T> +			Deprecated& operator =(const T& val) +			{ +				// do nothing +				return *this; +			} + +			template<typename T> +			DERIVED_BLOCK& operator()(const T& val) +			{ +				// do nothing +				return static_cast<DERIVED_BLOCK&>(Param::enclosingBlock()); +			} + +			template<typename T> +			void set(const T& val, bool flag_as_provided = true) +			{ +				// do nothing +			} +		};  	public:  		static BlockDescriptor& getBlockDescriptor() diff --git a/indra/newview/llinventoryfilter.cpp b/indra/newview/llinventoryfilter.cpp index 3f38d80a39..3e14faa55e 100644 --- a/indra/newview/llinventoryfilter.cpp +++ b/indra/newview/llinventoryfilter.cpp @@ -89,7 +89,7 @@ bool LLInventoryFilter::check(const LLFolderViewModelItem* item)  	const BOOL passed_clipboard = (listener ? checkAgainstClipboard(listener->getUUID()) : TRUE);  	// If it's a folder and we're showing all folders, return automatically. -	const BOOL is_folder = listener->getInventoryType() == LLInventoryType::IT_CATEGORY;; +	const BOOL is_folder = listener->getInventoryType() == LLInventoryType::IT_CATEGORY;  	if (is_folder && (mFilterOps.mShowFolderState == LLInventoryFilter::SHOW_ALL_FOLDERS))  	{  		return passed_clipboard; | 
