diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2019-09-03 05:24:00 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2019-09-03 09:31:52 +0000 |
commit | 77a4c434005430aa69146375b576f52294bfe742 (patch) | |
tree | 733d13692a4fe8b7ab03d5aa607a75306964e564 /searchcore | |
parent | a41c6717c20cd547b539bd2c387efe54c8bb8ef4 (diff) |
std::make_unique and c++11 for loops.
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp b/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp index 672e7f78784..656e49d7569 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp @@ -103,9 +103,8 @@ private: void buildSameElement(ProtonSameElement &n) { SameElementBuilder builder(_requestContext, _context); - for (size_t i = 0; i < n.getChildren().size(); ++i) { - search::query::Node &node = *n.getChildren()[i]; - builder.add_child(node); + for (search::query::Node *node : n.getChildren()) { + builder.add_child(*node); } _result = builder.build(); } |