diff options
author | HÃ¥vard Pettersen <3535158+havardpe@users.noreply.github.com> | 2019-09-03 12:04:02 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-03 12:04:02 +0200 |
commit | c8cddf4d1e98ad95a0659769f956fcbb85c5259c (patch) | |
tree | f9e94226008e854a643215c3ef487b9f23af3b8a /searchcore | |
parent | 5e7853aeb652d1be4a6b3891463e0b986f7b7969 (diff) | |
parent | 77a4c434005430aa69146375b576f52294bfe742 (diff) |
Merge pull request #10495 from vespa-engine/balder/modernize-13
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(); } |