From 3a407bb6b73a186eafd99bcec570f88097c4b2e1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 4 Sep 2012 19:11:53 +0300 Subject: Add const to more classes. --- src/textmanager.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/textmanager.h') 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 TextList; /**< The container type */ TextList mTextList; /**< The container */ -- cgit v1.2.3-70-g09d2