summaryrefslogtreecommitdiff
path: root/src/guichan/include/guichan/color.hpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-09-01 20:49:03 +0300
committerAndrei Karas <akaras@inbox.ru>2012-09-02 00:37:51 +0300
commit4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch)
tree7cadc707bb49e4c148ba9c182075697a9643e20a /src/guichan/include/guichan/color.hpp
parented3410d7eb61593a2235ddba97ce257c85e405a6 (diff)
downloadplus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz
plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2
plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz
plus-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip
Add const to more classes.
Diffstat (limited to 'src/guichan/include/guichan/color.hpp')
-rw-r--r--src/guichan/include/guichan/color.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/guichan/include/guichan/color.hpp b/src/guichan/include/guichan/color.hpp
index 6f0cfc1ff..795cdc12d 100644
--- a/src/guichan/include/guichan/color.hpp
+++ b/src/guichan/include/guichan/color.hpp
@@ -75,7 +75,7 @@ namespace gcn
*
* @param color The color to initialise the object with.
*/
- Color(int color);
+ Color(const int color);
/**
* Constructor. The default alpha value is 255.
@@ -86,7 +86,7 @@ namespace gcn
* @param a Alpha, used for transparency. A value of 0 means
* totaly transparent, 255 is totaly opaque.
*/
- Color(int r, int g, int b, int a = 255);
+ Color(const int r, const int g, const int b, const int a = 255);
/**
* Adds the RGB values of two colors together. The values will be
@@ -121,7 +121,7 @@ namespace gcn
* the add and subtract operations, be multiplied as
* well.
*/
- Color operator*(float value) const;
+ Color operator*(const float value) const;
/**
* Compares two colors.