diff options
Diffstat (limited to 'src/mongo/db/update/v1_log_builder_test.cpp')
-rw-r--r-- | src/mongo/db/update/v1_log_builder_test.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/update/v1_log_builder_test.cpp b/src/mongo/db/update/v1_log_builder_test.cpp index b760c7bbc68..1e599181ef3 100644 --- a/src/mongo/db/update/v1_log_builder_test.cpp +++ b/src/mongo/db/update/v1_log_builder_test.cpp @@ -48,10 +48,9 @@ namespace mmb = mongo::mutablebson; */ RuntimeUpdatePath makeRuntimeUpdatePathAssumeAllComponentsFieldNames(StringData path) { FieldRef fieldRef(path); - return RuntimeUpdatePath( - std::move(fieldRef), - std::vector<RuntimeUpdatePath::ComponentType>( - fieldRef.numParts(), RuntimeUpdatePath::ComponentType::kFieldName)); + RuntimeUpdatePath::ComponentTypeVector types(fieldRef.numParts(), + RuntimeUpdatePath::ComponentType::kFieldName); + return RuntimeUpdatePath(std::move(fieldRef), std::move(types)); } TEST(V1LogBuilder, UpdateFieldMutableBson) { |