diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-01 20:49:03 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-02 00:37:51 +0300 |
commit | 4df121e6dcdf53436f50ce81dd60096ce0138a2c (patch) | |
tree | 7cadc707bb49e4c148ba9c182075697a9643e20a /src/guichan/color.cpp | |
parent | ed3410d7eb61593a2235ddba97ce257c85e405a6 (diff) | |
download | mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.gz mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.bz2 mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.tar.xz mv-4df121e6dcdf53436f50ce81dd60096ce0138a2c.zip |
Add const to more classes.
Diffstat (limited to 'src/guichan/color.cpp')
-rw-r--r-- | src/guichan/color.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/guichan/color.cpp b/src/guichan/color.cpp index f58e7b58e..7cc3b887a 100644 --- a/src/guichan/color.cpp +++ b/src/guichan/color.cpp @@ -60,7 +60,7 @@ namespace gcn { } - Color::Color(int color) : + Color::Color(const int color) : r((color >> 16) & 0xFF), g((color >> 8) & 0xFF), b(color & 0xFF), @@ -68,7 +68,7 @@ namespace gcn { } - Color::Color(int ar, int ag, int ab, int aa) : + Color::Color(const int ar, const int ag, const int ab, const int aa) : r(ar), g(ag), b(ab), @@ -104,7 +104,7 @@ namespace gcn return result; } - Color Color::operator*(float value) const + Color Color::operator*(const float value) const { Color result(static_cast<int>(r * value), static_cast<int>(g * value), |