Converted frequently occuring setting lookups to LLCachedControl

Added LLObjectList::getAvatar(LLUUID) for type-safe and quicker lookup
Added F32 overload to LLSD because using F64 needlessly is silly.
   (And its lack of F32 overload caused issues with LLCachedControl<F32>)
This commit is contained in:
unknown
2010-10-07 21:36:13 -05:00
parent 49e4959bf5
commit fe9a3d2ba2
41 changed files with 365 additions and 209 deletions

View File

@@ -113,6 +113,7 @@ public:
typedef bool Boolean;
typedef S32 Integer;
typedef F64 Real;
typedef F32 Float; //casting to F32 was broken, so..
typedef std::string String;
typedef LLUUID UUID;
typedef LLDate Date;
@@ -187,6 +188,7 @@ public:
Boolean asBoolean() const;
Integer asInteger() const;
Real asReal() const;
Float asFloat() const {return (F32)asReal();}
String asString() const;
UUID asUUID() const;
Date asDate() const;
@@ -196,6 +198,7 @@ public:
operator Boolean() const { return asBoolean(); }
operator Integer() const { return asInteger(); }
operator Real() const { return asReal(); }
operator Float() const { return asFloat(); }
operator String() const { return asString(); }
operator UUID() const { return asUUID(); }
operator Date() const { return asDate(); }