Commit df8643fd authored by Tristan Matthews's avatar Tristan Matthews
Browse files

* #28351: yamlparser: use range-based for loops

parent 98a06870
......@@ -380,8 +380,8 @@ void YamlParser::constructNativeData()
{
Sequence *seq = doc_.getSequence();
for (Sequence::iterator iter = seq->begin(); iter != seq->end(); ++iter) {
YamlNode *yamlNode = static_cast<YamlNode *>(*iter);
for (const auto &iter : *seq) {
YamlNode *yamlNode = static_cast<YamlNode *>(iter);
if (yamlNode == NULL) {
ERROR("Could not retrieve yaml node from document sequence");
continue;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment