aboutsummaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-07-26 20:59:31 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-07-31 17:04:20 +0200
commitd449228846a9afbbc4f1ae01ab7fd64aa3731444 (patch)
tree2c47275d30493c20a94488601752ba7bd23b9747 /storageapi
parent1502958aa0d409a734dcc4a9618d743ac6d4808f (diff)
Removed unused parameters.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/tests/mbusprot/storageprotocoltest.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
index 129488b11ab..4d5a33b1dec 100644
--- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
+++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
@@ -278,18 +278,14 @@ void
StorageProtocolTest::testUpdate51()
{
ScopedName test("testUpdate51");
- document::DocumentUpdate::SP update(
- new document::DocumentUpdate(*_testDoc->getDataType(), _testDoc->getId()));
- std::shared_ptr<document::AssignValueUpdate> assignUpdate(
- new document::AssignValueUpdate(document::IntFieldValue(17)));
+ document::DocumentUpdate::SP update(new document::DocumentUpdate(*_testDoc->getDataType(), _testDoc->getId()));
+ std::shared_ptr<document::AssignValueUpdate> assignUpdate(new document::AssignValueUpdate(document::IntFieldValue(17)));
document::FieldUpdate fieldUpdate(_testDoc->getField("headerval"));
fieldUpdate.addUpdate(*assignUpdate);
update->addUpdate(fieldUpdate);
- update->addFieldPathUpdate(
- document::FieldPathUpdate::CP(
- new document::RemoveFieldPathUpdate(*_testDoc->getDataType(),
- "headerval", "testdoctype1.headerval > 0")));
+ update->addFieldPathUpdate(document::FieldPathUpdate::CP(
+ new document::RemoveFieldPathUpdate("headerval", "testdoctype1.headerval > 0")));
UpdateCommand::SP cmd(new UpdateCommand(_bucket, update, 14));
CPPUNIT_ASSERT_EQUAL(Timestamp(0), cmd->getOldTimestamp());