From c0d5142d1ed98b62ad87603fa9d2620dce256bd7 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 18 Sep 2013 19:46:23 +0300 Subject: add consts in gui classes. --- src/gui/widgets/textbox.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/widgets/textbox.cpp') diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp index 53f071d3d..bf79f80ba 100644 --- a/src/gui/widgets/textbox.cpp +++ b/src/gui/widgets/textbox.cpp @@ -87,7 +87,7 @@ void TextBox::setTextWrapped(const std::string &text, const int minDimension) text.substr(lastNewlinePos, newlinePos - lastNewlinePos); size_t lastSpacePos = 0; xpos = 0; - gcn::Font *const font = getFont(); + const gcn::Font *const font = getFont(); const int spaceWidth = font->getWidth(" "); size_t sz = line.size(); -- cgit v1.2.3-70-g09d2