diff options
Diffstat (limited to 'indra/llmath/v4coloru.h')
| -rw-r--r-- | indra/llmath/v4coloru.h | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/indra/llmath/v4coloru.h b/indra/llmath/v4coloru.h index 082d0efbb1..4ec5a345eb 100644 --- a/indra/llmath/v4coloru.h +++ b/indra/llmath/v4coloru.h @@ -66,7 +66,7 @@ public:  	LLColor4U(U8 r, U8 g, U8 b);		// Initializes LLColor4U to (r, g, b, 1)  	LLColor4U(U8 r, U8 g, U8 b, U8 a);		// Initializes LLColor4U to (r. g, b, a)  	LLColor4U(const U8 *vec);			// Initializes LLColor4U to (vec[0]. vec[1], vec[2], 1) -	LLColor4U(const LLSD& sd) +	explicit LLColor4U(const LLSD& sd)  	{  		setValue(sd);  	} @@ -79,12 +79,6 @@ public:  		mV[3] = sd[3].asInteger();  	} -	const LLColor4U& operator=(const LLSD& sd) -	{ -		setValue(sd); -		return *this; -	} -  	LLSD getValue() const  	{  		LLSD ret; @@ -138,6 +132,12 @@ public:  	static BOOL parseColor4U(const std::string& buf, LLColor4U* value); +	// conversion +	operator const LLColor4() const +	{ +		return LLColor4(*this); +	} +  	static LLColor4U white;  	static LLColor4U black;  	static LLColor4U red; | 
