summaryrefslogtreecommitdiffstats
path: root/storageapi
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2017-07-26 18:07:36 +0200
committerHenning Baldersheim <balder@yahoo-inc.com>2017-07-31 17:04:19 +0200
commit70f3ef6c0523ecd90d327642b96a5bc619df4e3a (patch)
tree545632983bb66c1b377075ccbdef3dab2972d3f3 /storageapi
parent4636bc4baf6c52005027f54188e2f3ddd71205a5 (diff)
Remove DocumentTypeRepo from interfaces where it is not needed.
Diffstat (limited to 'storageapi')
-rw-r--r--storageapi/src/tests/mbusprot/storageprotocoltest.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
index 2818f17c4ec..129488b11ab 100644
--- a/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
+++ b/storageapi/src/tests/mbusprot/storageprotocoltest.cpp
@@ -279,8 +279,7 @@ StorageProtocolTest::testUpdate51()
{
ScopedName test("testUpdate51");
document::DocumentUpdate::SP update(
- new document::DocumentUpdate(*_testDoc->getDataType(),
- _testDoc->getId()));
+ 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"));
@@ -289,9 +288,8 @@ StorageProtocolTest::testUpdate51()
update->addFieldPathUpdate(
document::FieldPathUpdate::CP(
- new document::RemoveFieldPathUpdate(
- _docMan.getTypeRepo(), *_testDoc->getDataType(),
- "headerval", "testdoctype1.headerval > 0")));
+ new document::RemoveFieldPathUpdate(*_testDoc->getDataType(),
+ "headerval", "testdoctype1.headerval > 0")));
UpdateCommand::SP cmd(new UpdateCommand(_bucket, update, 14));
CPPUNIT_ASSERT_EQUAL(Timestamp(0), cmd->getOldTimestamp());