diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-12 13:35:32 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-12 13:35:32 +0300 |
commit | dbf80cecba66c3171ccebb6c22d85c3b52637882 (patch) | |
tree | 18757d1b8237c4f5e5580fe9de5b67d4b011ac25 /src/gui/widgets | |
parent | 18ba68228c2a8bce02a7bce1569be9998570d5f2 (diff) | |
download | manaplus-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.gz manaplus-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.bz2 manaplus-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.xz manaplus-dbf80cecba66c3171ccebb6c22d85c3b52637882.zip |
fix compilation warnings.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/textfield.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp index 58a1f7e18..b4d72a1a7 100644 --- a/src/gui/widgets/textfield.cpp +++ b/src/gui/widgets/textfield.cpp @@ -609,7 +609,7 @@ void TextField::caretDeleteToStart() void TextField::moveCaretWordBack() { - const int oldCaret = mCaretPosition; + const unsigned int oldCaret = mCaretPosition; while (mCaretPosition > 0) { if (!isWordSeparator(mText[mCaretPosition - 1])) @@ -629,7 +629,7 @@ void TextField::moveCaretWordBack() void TextField::moveCaretWordForward() { const unsigned sz = static_cast<unsigned>(mText.size()); - const int oldCaret = mCaretPosition; + const unsigned int oldCaret = mCaretPosition; while (mCaretPosition < sz) { if (!isWordSeparator(mText[mCaretPosition])) |