Fixed Color::toInteger() not being const-qualified

This commit is contained in:
Jan Haller 2015-04-28 21:44:31 +02:00
parent e0d27358fb
commit e0174545e6
2 changed files with 2 additions and 2 deletions

View File

@ -75,7 +75,7 @@ public:
/// \return Color represented as a 32-bit unsigned integer /// \return Color represented as a 32-bit unsigned integer
/// ///
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Uint32 toInteger(); Uint32 toInteger() const;
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
// Static member data // Static member data

View File

@ -79,7 +79,7 @@ a((color & 0x000000ff) >> 0 )
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
Uint32 Color::toInteger() Uint32 Color::toInteger() const
{ {
return (r << 24) | (g << 16) | (b << 8) | a; return (r << 24) | (g << 16) | (b << 8) | a;
} }