From e0174545e659a26fd9c0bc5905037652ed924a33 Mon Sep 17 00:00:00 2001 From: Jan Haller Date: Tue, 28 Apr 2015 21:44:31 +0200 Subject: [PATCH] Fixed Color::toInteger() not being const-qualified --- include/SFML/Graphics/Color.hpp | 2 +- src/SFML/Graphics/Color.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/SFML/Graphics/Color.hpp b/include/SFML/Graphics/Color.hpp index d32d59dad..87a15982e 100644 --- a/include/SFML/Graphics/Color.hpp +++ b/include/SFML/Graphics/Color.hpp @@ -75,7 +75,7 @@ public: /// \return Color represented as a 32-bit unsigned integer /// //////////////////////////////////////////////////////////// - Uint32 toInteger(); + Uint32 toInteger() const; //////////////////////////////////////////////////////////// // Static member data diff --git a/src/SFML/Graphics/Color.cpp b/src/SFML/Graphics/Color.cpp index 3fcec2322..0bcd5024d 100644 --- a/src/SFML/Graphics/Color.cpp +++ b/src/SFML/Graphics/Color.cpp @@ -79,7 +79,7 @@ a((color & 0x000000ff) >> 0 ) //////////////////////////////////////////////////////////// -Uint32 Color::toInteger() +Uint32 Color::toInteger() const { return (r << 24) | (g << 16) | (b << 8) | a; }