summaryrefslogtreecommitdiff
path: root/src/gui/widgets/textbox.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-05 01:09:30 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-05 01:09:30 +0300
commit485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70 (patch)
treece74f5a2fb646439cb58c2d85bc67ff29b70dbb7 /src/gui/widgets/textbox.cpp
parent33f4a30373c8978d4e4f29422a5b0132fd14a0ec (diff)
downloadplus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.gz
plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.bz2
plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.tar.xz
plus-485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70.zip
Fix code style.
Diffstat (limited to 'src/gui/widgets/textbox.cpp')
-rw-r--r--src/gui/widgets/textbox.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/textbox.cpp b/src/gui/widgets/textbox.cpp
index 905347f89..545f52fa3 100644
--- a/src/gui/widgets/textbox.cpp
+++ b/src/gui/widgets/textbox.cpp
@@ -554,9 +554,9 @@ void TextBox::setCaretRow(const int row)
unsigned int TextBox::getCaretPosition() const
{
- int pos = 0, row;
+ int pos = 0;
- for (row = 0; row < mCaretRow; row++)
+ for (int row = 0; row < mCaretRow; row++)
pos += CAST_S32(mTextRows[row].size());
return pos + mCaretColumn;