Use operator overloading best practices.

Not all files covered.

Refer to StackOverflow for details: http://stackoverflow.com/a/4421719
This commit is contained in:
Jason Felds
2014-11-26 14:51:21 -05:00
parent 1a51b06934
commit 3451b2f2d5
10 changed files with 218 additions and 97 deletions
-4
View File
@@ -4,10 +4,6 @@
#include <limits.h>
bool RageSurfaceColor::operator== ( const RageSurfaceColor &rhs ) const
{
return rhs.r == r && rhs.g == g && rhs.b == b && rhs.a == a;
}
int32_t RageSurfacePalette::FindColor( const RageSurfaceColor &color ) const
{