From 0534847df83047f1ce2605187d45a762ffeae11e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Sep 2012 21:25:21 +0300 Subject: Add const to more classes. --- src/resources/dye.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/resources/dye.h') diff --git a/src/resources/dye.h b/src/resources/dye.h index 7e5ba6c99..cd5e58093 100644 --- a/src/resources/dye.h +++ b/src/resources/dye.h @@ -44,13 +44,13 @@ class DyePalette * The string is either a file name or a sequence of hexadecimal RGB * values separated by ',' and starting with '#'. */ - DyePalette(const std::string &pallete, int8_t blockSize); + DyePalette(const std::string &pallete, const int8_t blockSize); /** * Gets a pixel color depending on its intensity. First color is * implicitly black (0, 0, 0). */ - void getColor(int intensity, int color[3]) const; + void getColor(const int intensity, int color[3]) const; /** * Gets a pixel color depending on its intensity. @@ -60,24 +60,24 @@ class DyePalette /** * replace colors for SDL for S dye. */ - void replaceSColor(uint8_t *color) const; + void replaceSColor(uint8_t *const color) const; /** * replace colors for SDL for S dye. */ - void replaceAColor(uint8_t *color) const; + void replaceAColor(uint8_t *const color) const; /** * replace colors for OpenGL for S dye. */ - void replaceSOGLColor(uint8_t *color) const; + void replaceSOGLColor(uint8_t *const color) const; /** * replace colors for OpenGL for A dye. */ - void replaceAOGLColor(uint8_t *color) const; + void replaceAOGLColor(uint8_t *const color) const; - int hexDecode(char c); + static int hexDecode(const char c); private: struct Color -- cgit v1.2.3-60-g2f50