Skip to content

Commit

Permalink
Use range-based for loops in mkclass
Browse files Browse the repository at this point in the history
refs #12538
refs #12509
  • Loading branch information
gunnarbeutner committed Aug 27, 2016
1 parent 00eec13 commit 45c1e57
Show file tree
Hide file tree
Showing 2 changed files with 159 additions and 163 deletions.
8 changes: 4 additions & 4 deletions tools/mkclass/class_parser.yy
Expand Up @@ -248,11 +248,11 @@ class: class_attribute_list T_CLASS T_IDENTIFIER inherits_specifier type_base_sp

$$->Attributes = $1;

for (std::vector<Field>::iterator it = $7->begin(); it != $7->end(); it++) {
if (it->Attributes & FALoadDependency) {
$$->LoadDependencies.push_back(it->Name);
for (const Field& field : *$7) {
if (field.Attributes & FALoadDependency) {
$$->LoadDependencies.push_back(field.Name);
} else
$$->Fields.push_back(*it);
$$->Fields.push_back(field);
}

delete $7;
Expand Down

0 comments on commit 45c1e57

Please sign in to comment.