summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textfield.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-11-22 15:09:44 +0300
committerAndrei Karas <akaras@inbox.ru>2013-11-22 15:09:44 +0300
commit0220dc10be5aefc627b73c39084ef551cc880fa4 (patch)
treea8a648526daa0ed3783875eb0240dfa60b38a3a4 /src/gui/widgets/textfield.cpp
parent6040ca74072be2087c4ddf91d303f4d73187dec7 (diff)
downloadmanaplus-0220dc10be5aefc627b73c39084ef551cc880fa4.tar.gz
manaplus-0220dc10be5aefc627b73c39084ef551cc880fa4.tar.bz2
manaplus-0220dc10be5aefc627b73c39084ef551cc880fa4.tar.xz
manaplus-0220dc10be5aefc627b73c39084ef551cc880fa4.zip
fix code style.
Diffstat (limited to 'src/gui/widgets/textfield.cpp')
-rw-r--r--src/gui/widgets/textfield.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/gui/widgets/textfield.cpp b/src/gui/widgets/textfield.cpp
index 49aad86b6..7a6f27ee2 100644
--- a/src/gui/widgets/textfield.cpp
+++ b/src/gui/widgets/textfield.cpp
@@ -23,7 +23,6 @@
#include "gui/widgets/textfield.h"
#include "client.h"
-#include "mouseinput.h"
#if defined ANDROID || defined USE_SDL2
#include "input/inputmanager.h"
@@ -32,7 +31,6 @@
#include "input/keydata.h"
#include "input/keyevent.h"
-#include "gui/sdlinput.h"
#include "gui/viewport.h"
#include "gui/popups/popupmenu.h"
@@ -539,13 +537,13 @@ void TextField::moveCaretForward()
void TextField::caretDelete()
{
- unsigned sz = static_cast<unsigned>(mText.size());
- while (mCaretPosition < sz)
- {
- --sz;
- mText.erase(mCaretPosition, 1);
- if (mCaretPosition == sz || (mText[mCaretPosition] & 192) != 128)
- break;
+ unsigned sz = static_cast<unsigned>(mText.size());
+ while (mCaretPosition < sz)
+ {
+ --sz;
+ mText.erase(mCaretPosition, 1);
+ if (mCaretPosition == sz || (mText[mCaretPosition] & 192) != 128)
+ break;
}
}