From c79403e1341ac533df1771b866d1f5cee15e12b5 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 28 Aug 2012 01:59:04 +0300 Subject: Add const to more classes. --- src/gui/sdlfont.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/gui/sdlfont.h') diff --git a/src/gui/sdlfont.h b/src/gui/sdlfont.h index a7bea343f..a736c70e0 100644 --- a/src/gui/sdlfont.h +++ b/src/gui/sdlfont.h @@ -53,16 +53,17 @@ class SDLFont : public gcn::Font * @param filename Font filename. * @param size Font size. */ - SDLFont(std::string filename, int size, int style = 0); + SDLFont(std::string filename, const int size, const int style = 0); /** * Destructor. */ ~SDLFont(); - void loadFont(std::string filename, int size, int style = 0); + void loadFont(std::string filename, const int size, + const int style = 0); - void createSDLTextChunk(SDLTextChunk *chunk); + void createSDLTextChunk(SDLTextChunk *const chunk); virtual int getWidth(const std::string &text) const; @@ -74,9 +75,9 @@ class SDLFont : public gcn::Font /** * @see Font::drawString */ - void drawString(gcn::Graphics *graphics, + void drawString(gcn::Graphics *const graphics, const std::string &text, - int x, int y); + const int x, const int y); void clear(); -- cgit v1.2.3-60-g2f50