mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 00:13:30 +00:00
Use range iterators for Map
This commit is contained in:
parent
e4dfa69bcf
commit
c63b18507d
154 changed files with 1897 additions and 1897 deletions
|
@ -582,9 +582,9 @@ void GDScriptParser::parse_program() {
|
|||
parse_class_body(true);
|
||||
|
||||
#ifdef TOOLS_ENABLED
|
||||
for (Map<int, GDScriptTokenizer::CommentData>::Element *E = tokenizer.get_comments().front(); E; E = E->next()) {
|
||||
if (E->get().new_line && E->get().comment.begins_with("##")) {
|
||||
class_doc_line = MIN(class_doc_line, E->key());
|
||||
for (const KeyValue<int, GDScriptTokenizer::CommentData> &E : tokenizer.get_comments()) {
|
||||
if (E.value.new_line && E.value.comment.begins_with("##")) {
|
||||
class_doc_line = MIN(class_doc_line, E.key);
|
||||
}
|
||||
}
|
||||
if (has_comment(class_doc_line)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue