mirror of
https://github.com/godotengine/godot.git
synced 2025-10-26 03:04:31 +00:00
Small fixes to unrechable code, possibly overflows, using NULL pointers
This commit is contained in:
parent
8c923fc617
commit
8245db869f
18 changed files with 48 additions and 70 deletions
|
|
@ -912,7 +912,7 @@ void CodeTextEditor::convert_case(CaseStyle p_case) {
|
|||
for (int i = begin; i <= end; i++) {
|
||||
int len = text_editor->get_line(i).length();
|
||||
if (i == end)
|
||||
len -= len - end_col;
|
||||
len = end_col;
|
||||
if (i == begin)
|
||||
len -= begin_col;
|
||||
String new_line = text_editor->get_line(i).substr(i == begin ? begin_col : 0, len);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue