Mark equals() functions as const

This commit is contained in:
mogemimi 2016-01-22 06:09:27 +09:00
parent be7c8c7553
commit 37b0d7c217
2 changed files with 3 additions and 3 deletions

View File

@ -300,7 +300,7 @@ public:
* @param other The vector to be compared.
* @return True if two vectors are equal, false if not.
*/
bool equals(const Vector<T> &other)
bool equals(const Vector<T> &other) const
{
ssize_t s = this->size();
if (s != other.size())

View File

@ -63,7 +63,7 @@ struct CC_DLL Color3B
bool operator!=(const Color4B& right) const;
bool operator!=(const Color4F& right) const;
bool equals(const Color3B& other)
bool equals(const Color3B& other) const
{
return (*this == other);
}
@ -144,7 +144,7 @@ struct CC_DLL Color4F
bool operator!=(const Color3B& right) const;
bool operator!=(const Color4B& right) const;
bool equals(const Color4F &other)
bool equals(const Color4F &other) const
{
return (*this == other);
}