From 485e9bb12bf5dda318ac0ccbf1d2a1cd86cf8c70 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 5 Nov 2018 01:09:30 +0300 Subject: Fix code style. --- src/gui/widgets/textbox.cpp | 4 ++-- 1 file changed, 2 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 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; -- cgit v1.2.3-70-g09d2