LLWearableDictionary shouldn't return -1 for an unknown type name

Sun, 18 Mar 2012 21:22:34 +0100

author
Kitty Barnett <develop@catznip.com>
date
Sun, 18 Mar 2012 21:22:34 +0100
changeset 1687
54d0e6f6e432
parent 1685
05f2eb53f1b1
child 1688
7edc20bfb582

LLWearableDictionary shouldn't return -1 for an unknown type name

indra/newview/llwearabletype.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/llwearabletype.cpp	Sun Mar 18 12:21:30 2012 -0400
     1.2 +++ b/indra/newview/llwearabletype.cpp	Sun Mar 18 21:22:34 2012 +0100
     1.3 @@ -64,6 +64,12 @@
     1.4  {
     1.5  public:
     1.6  	LLWearableDictionary();
     1.7 +
     1.8 +// [RLVa:KB] - Checked: 2010-03-03 (RLVa-1.2.0a) | Added: RLVa-1.2.0a
     1.9 +protected:
    1.10 +	// The default implementation asserts on 'notFound()' and returns -1 which isn't a valid EWearableType
    1.11 +	virtual LLWearableType::EType notFound() const { return LLWearableType::WT_INVALID; }
    1.12 +// [/RLVa:KB]
    1.13  };
    1.14  
    1.15  LLWearableDictionary::LLWearableDictionary()

mercurial