diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-09-04 19:11:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-09-04 19:11:53 +0300 |
commit | 3a407bb6b73a186eafd99bcec570f88097c4b2e1 (patch) | |
tree | ea57a752c348ba0a883294855ad3c62c16e9749d /src/textmanager.h | |
parent | 872fc368f7b253f26714fc47323064f270b62b40 (diff) | |
download | mv-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.gz mv-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.bz2 mv-3a407bb6b73a186eafd99bcec570f88097c4b2e1.tar.xz mv-3a407bb6b73a186eafd99bcec570f88097c4b2e1.zip |
Add const to more classes.
Diffstat (limited to 'src/textmanager.h')
-rw-r--r-- | src/textmanager.h | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/src/textmanager.h b/src/textmanager.h index 471274895..8819d31dc 100644 --- a/src/textmanager.h +++ b/src/textmanager.h @@ -42,17 +42,17 @@ class TextManager /** * Add text to the manager */ - void addText(Text *text); + void addText(Text *const text); /** * Move the text around the screen */ - void moveText(Text *text, int x, int y); + void moveText(Text *const text, const int x, const int y); /** * Remove the text from the manager */ - void removeText(const Text *text); + void removeText(const Text *const text); /** * Destroy the manager @@ -62,14 +62,15 @@ class TextManager /** * Draw the text */ - void draw(gcn::Graphics *graphics, int xOff, int yOff); + void draw(gcn::Graphics *const graphics, + const int xOff, const int yOff); private: /** * Position the text so as to avoid conflict */ - void place(const Text *textObj, const Text *omit, - int &x, int &y, int h); + void place(const Text *const textObj, const Text *const omit, + const int &x, int &y, const int h); typedef std::list<Text *> TextList; /**< The container type */ TextList mTextList; /**< The container */ |