void EditorBar::ClearErrors(int line) { int count; if(line < 0) { line = 0; count = li.GetCount(); } else count = line + 1; for(int i = line; i < count; i++) li[i].error = 0; // Assert here }
void EditorBar::ClearErrors(int line) { int count; if(line < 0) { line = 0; count = li.GetCount(); } else if (line >= li.GetCount()) // Added count = li.GetCount(); else count = line + 1; for(int i = line; i < count; i++) li[i].error = 0; }
void EditorBar::ClearErrors(int line) { int count; if(line < 0) { line = 0; count = li.GetCount(); } else if (line >= li.GetCount()) // Added return; else count = line + 1; for(int i = line; i < count; i++) li[i].error = 0; }
Report message to a moderator