diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-03-29 16:53:08 +0000 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-03-29 16:53:08 +0000 |
commit | d479be48145cfe888815c9744ed209675637a90a (patch) | |
tree | b2832a2e9fc0f44444d9c3f48a00140974486d37 /searchcore | |
parent | 61b9bc1d40610af6205a94ed18686008e991ee18 (diff) |
push_back -> emplace_back
Diffstat (limited to 'searchcore')
-rw-r--r-- | searchcore/src/vespa/searchcore/proton/matching/querynodes.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/searchcore/src/vespa/searchcore/proton/matching/querynodes.cpp b/searchcore/src/vespa/searchcore/proton/matching/querynodes.cpp index bb8a669f91a..5f70d1f638b 100644 --- a/searchcore/src/vespa/searchcore/proton/matching/querynodes.cpp +++ b/searchcore/src/vespa/searchcore/proton/matching/querynodes.cpp @@ -54,7 +54,7 @@ ProtonTermData::resolve(const ViewResolver &resolver, for (size_t i = 0; i < fields.size(); ++i) { const FieldInfo *info = idxEnv.getFieldByName(fields[i]); if (info != 0) { - _fields.push_back(FieldEntry(fields[i], info->id())); + _fields.emplace_back(fields[i], info->id()); _fields.back().attribute_field = (info->type() == FieldType::ATTRIBUTE) || (info->type() == FieldType::HIDDEN_ATTRIBUTE); @@ -79,7 +79,7 @@ ProtonTermData::resolveFromChildren(const std::vector<Node *> &subterms) if (lookupField(subSpec.getFieldId()) == 0) { // this must happen before handles are reserved LOG_ASSERT(subSpec.getHandle() == search::fef::IllegalHandle); - _fields.push_back(FieldEntry(subSpec.getName(), subSpec.getFieldId())); + _fields.emplace_back(subSpec.getName(), subSpec.getFieldId()); } } } |