diff options
author | Benety Goh <benety@mongodb.com> | 2020-08-01 14:25:50 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-08-01 18:52:39 +0000 |
commit | 7cdef9c3982206dfc2fdd3b660d4e4d6f5e5d9e9 (patch) | |
tree | 5d7ffd099094fcf305b4ab6f0920bf7bc1601b1e /src/mongo/db/keys_collection_document_test.cpp | |
parent | 98f525dc3cb20fe3a196976bac08bcb62fa30618 (diff) | |
download | mongo-7cdef9c3982206dfc2fdd3b660d4e4d6f5e5d9e9.tar.gz |
SERVER-49800 fix use-after-move violations in tests
Diffstat (limited to 'src/mongo/db/keys_collection_document_test.cpp')
-rw-r--r-- | src/mongo/db/keys_collection_document_test.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/keys_collection_document_test.cpp b/src/mongo/db/keys_collection_document_test.cpp index 4e4b4ec0b5d..dfa6124a212 100644 --- a/src/mongo/db/keys_collection_document_test.cpp +++ b/src/mongo/db/keys_collection_document_test.cpp @@ -49,8 +49,7 @@ TEST(KeysCollectionDocument, Roundtrip) { const auto expiresAt = LogicalTime(Timestamp(100, 200)); - KeysCollectionDocument keysCollectionDoc( - keyId, std::move(purpose), std::move(key), std::move(expiresAt)); + KeysCollectionDocument keysCollectionDoc(keyId, purpose, key, expiresAt); auto serializedObj = keysCollectionDoc.toBSON(); |