From 9c69d7f3392249d26236dcb33bee7de8f283dc28 Mon Sep 17 00:00:00 2001 From: Michael Alexsander Silva Dias Date: Mon, 14 Jan 2019 20:04:47 -0200 Subject: Appease some CppCheck warns for files in the "scene" directory --- scene/gui/line_edit.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'scene/gui/line_edit.cpp') diff --git a/scene/gui/line_edit.cpp b/scene/gui/line_edit.cpp index 4d638b50c6..4a2bb3dad1 100644 --- a/scene/gui/line_edit.cpp +++ b/scene/gui/line_edit.cpp @@ -1290,13 +1290,11 @@ int LineEdit::get_max_length() const { void LineEdit::selection_fill_at_cursor() { - int aux; - selection.begin = cursor_pos; selection.end = selection.cursor_start; if (selection.end < selection.begin) { - aux = selection.end; + int aux = selection.end; selection.end = selection.begin; selection.begin = aux; } -- cgit v1.2.3