summaryrefslogtreecommitdiffstats
path: root/searchcore
diff options
context:
space:
mode:
Diffstat (limited to 'searchcore')
-rw-r--r--searchcore/src/vespa/searchcore/proton/matching/blueprintbuilder.cpp5
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();
}