From 0ef5980e8551e1684f4c5253ede87dcad887eac1 Mon Sep 17 00:00:00 2001 From: Henning Baldersheim Date: Mon, 28 Mar 2022 10:41:04 +0000 Subject: Use both lvalue and rvalue specifier to avoid explicit std::move() --- persistence/src/vespa/persistence/conformancetest/conformancetest.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'persistence/src') diff --git a/persistence/src/vespa/persistence/conformancetest/conformancetest.cpp b/persistence/src/vespa/persistence/conformancetest/conformancetest.cpp index f46bdaf19f0..2a5b4b48cfa 100644 --- a/persistence/src/vespa/persistence/conformancetest/conformancetest.cpp +++ b/persistence/src/vespa/persistence/conformancetest/conformancetest.cpp @@ -910,9 +910,7 @@ TEST_F(ConformanceTest, testUpdate) const document::DocumentType *docType( testDocMan.getTypeRepo().getDocumentType("testdoctype1")); document::DocumentUpdate::SP update(new DocumentUpdate(testDocMan.getTypeRepo(), *docType, doc1->getId())); - document::FieldUpdate fieldUpdate(docType->getField("headerval")); - fieldUpdate.addUpdate(std::make_unique(document::IntFieldValue(42))); - update->addUpdate(std::move(fieldUpdate)); + update->addUpdate(document::FieldUpdate(docType->getField("headerval")).addUpdate(std::make_unique(document::IntFieldValue(42)))); { UpdateResult result = spi->update(bucket, Timestamp(3), update, context); -- cgit v1.2.3