diff options
| author | Lars Næsbye Christensen <lars@naesbye.dk> | 2024-02-10 22:37:52 +0100 | 
|---|---|---|
| committer | Andrey Lihatskiy <alihatskiy@productengine.com> | 2024-02-12 23:17:22 +0200 | 
| commit | 70f8dc7a4f4be217fea5439e474fc75e567c23c5 (patch) | |
| tree | a55dacb2ea41b1fcc43b0bf193e8b6846abb0630 /indra/llmath | |
| parent | 04a02e83e9dcc29d4649e8003d523621b5119d7b (diff) | |
miscellaneous: BOOL (int) to real bool
Diffstat (limited to 'indra/llmath')
| -rw-r--r-- | indra/llmath/llquaternion.cpp | 6 | ||||
| -rw-r--r-- | indra/llmath/raytrace.cpp | 2 | ||||
| -rw-r--r-- | indra/llmath/v3math.h | 12 | 
3 files changed, 10 insertions, 10 deletions
| diff --git a/indra/llmath/llquaternion.cpp b/indra/llmath/llquaternion.cpp index 57a976b57a..1e7c39df65 100644 --- a/indra/llmath/llquaternion.cpp +++ b/indra/llmath/llquaternion.cpp @@ -963,7 +963,7 @@ BOOL LLQuaternion::parseQuat(const std::string& buf, LLQuaternion* value)  {  	if( buf.empty() || value == NULL)  	{ -		return FALSE; +		return false;  	}  	LLQuaternion quat; @@ -971,10 +971,10 @@ BOOL LLQuaternion::parseQuat(const std::string& buf, LLQuaternion* value)  	if( 4 == count )  	{  		value->set( quat ); -		return TRUE; +		return true;  	} -	return FALSE; +	return false;  } diff --git a/indra/llmath/raytrace.cpp b/indra/llmath/raytrace.cpp index fde12876c7..314255374a 100644 --- a/indra/llmath/raytrace.cpp +++ b/indra/llmath/raytrace.cpp @@ -1226,7 +1226,7 @@ BOOL linesegment_prism(const LLVector3 &point_a, const LLVector3 &point_b,  	{  		if (segment_length >= (point_a - intersection).magVec())  		{ -			return TRUE; +			return true;  		}  	}  	return FALSE; diff --git a/indra/llmath/v3math.h b/indra/llmath/v3math.h index 068f489020..31abf433a0 100644 --- a/indra/llmath/v3math.h +++ b/indra/llmath/v3math.h @@ -119,7 +119,7 @@ class LLVector3  		const LLVector3&	scaleVec(const LLVector3& vec);				// scales per component by vec  		LLVector3			scaledVec(const LLVector3& vec) const;			// get a copy of this vector scaled by vec -		BOOL isNull() const;			// Returns TRUE if vector has a _very_small_ length +		bool isNull() const;			// Returns TRUE if vector has a _very_small_ length  		BOOL isExactlyZero() const		{ return !mV[VX] && !mV[VY] && !mV[VZ]; }  		F32 operator[](int idx) const { return mV[idx]; } @@ -539,13 +539,13 @@ inline LLVector3 lerp(const LLVector3 &a, const LLVector3 &b, F32 u)  } -inline BOOL	LLVector3::isNull() const +inline bool	LLVector3::isNull() const  {  	if ( F_APPROXIMATELY_ZERO > mV[VX]*mV[VX] + mV[VY]*mV[VY] + mV[VZ]*mV[VZ] )  	{ -		return TRUE; +		return true;  	} -	return FALSE; +	return false;  }  inline void update_min_max(LLVector3& min, LLVector3& max, const LLVector3& pos) @@ -598,9 +598,9 @@ inline BOOL are_parallel(const LLVector3 &a, const LLVector3 &b, F32 epsilon)  	F32 dot = an * bn;  	if ( (1.0f - fabs(dot)) < epsilon)  	{ -		return TRUE; +		return true;  	} -	return FALSE; +	return false;  }  inline std::ostream& operator<<(std::ostream& s, const LLVector3 &a)  | 
