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/textrenderer.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/textrenderer.h') diff --git a/src/textrenderer.h b/src/textrenderer.h index 5dd831ddd..e331453fb 100644 --- a/src/textrenderer.h +++ b/src/textrenderer.h @@ -35,15 +35,15 @@ class TextRenderer /** * Renders a specified text. */ - static inline void renderText(gcn::Graphics *graphics, + static inline void renderText(gcn::Graphics *const graphics, const std::string &text, - int x, int y, - gcn::Graphics::Alignment align, + const int x, const int y, + const gcn::Graphics::Alignment align, const gcn::Color &color, - gcn::Font *font, - bool outline = false, - bool shadow = false, - int alpha = 255) + gcn::Font *const font, + const bool outline = false, + const bool shadow = false, + const int alpha = 255) { graphics->setFont(font); -- cgit v1.2.3-60-g2f50