summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-12 13:35:32 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-12 13:35:32 +0300
commitdbf80cecba66c3171ccebb6c22d85c3b52637882 (patch)
tree18757d1b8237c4f5e5580fe9de5b67d4b011ac25 /src/gui/widgets/textfield.cpp
parent18ba68228c2a8bce02a7bce1569be9998570d5f2 (diff)
downloadmv-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.gz
mv-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.bz2
mv-dbf80cecba66c3171ccebb6c22d85c3b52637882.tar.xz
mv-dbf80cecba66c3171ccebb6c22d85c3b52637882.zip
fix compilation warnings.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp4
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]))