From 761682b6254a3d43e65ff45e07683c61afa6f1e4 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 31 Mar 2012 16:54:22 +0300 Subject: Last part of fixes. --- src/gui/widgets/textbox.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets/textbox.cpp') diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp index 575036612..01cb4bddb 100644 --- a/src/gui/widgets/textbox.cpp +++ b/src/gui/widgets/textbox.cpp @@ -48,7 +48,9 @@ void TextBox::setTextWrapped(const std::string &text, int minDimension) mMinWidth = minDimension; std::stringstream wrappedStream; - std::string::size_type spacePos, newlinePos, lastNewlinePos = 0; + size_t spacePos; + size_t newlinePos; + size_t lastNewlinePos = 0; int minWidth = 0; int xpos; @@ -73,7 +75,7 @@ void TextBox::setTextWrapped(const std::string &text, int minDimension) std::string line = text.substr(lastNewlinePos, newlinePos - lastNewlinePos); - std::string::size_type lastSpacePos = 0; + size_t lastSpacePos = 0; xpos = 0; do -- cgit v1.2.3-60-g2f50