Appease some CppCheck warns for files in the "scene" directory

This commit is contained in:
Michael Alexsander Silva Dias
2019-01-14 20:04:47 -02:00
parent 9c1768836f
commit 9c69d7f339
10 changed files with 24 additions and 39 deletions

View File

@ -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;
}