aboutsummaryrefslogtreecommitdiffstats
path: root/document/src/tests/testxml.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'document/src/tests/testxml.cpp')
-rw-r--r--document/src/tests/testxml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/document/src/tests/testxml.cpp b/document/src/tests/testxml.cpp
index 998d41480f3..5f194661fe5 100644
--- a/document/src/tests/testxml.cpp
+++ b/document/src/tests/testxml.cpp
@@ -62,7 +62,7 @@ createTestDocumentUpdate(const DocumentTypeRepo& repo)
up->addUpdate(FieldUpdate(type->getField("intattr"))
.addUpdate(std::make_unique<AssignValueUpdate>(std::make_unique<IntFieldValue>(7))));
up->addUpdate(FieldUpdate(type->getField("stringattr"))
- .addUpdate(std::make_unique<AssignValueUpdate>(std::make_unique<StringFieldValue>("New value"))));
+ .addUpdate(std::make_unique<AssignValueUpdate>(StringFieldValue::make("New value"))));
up->addUpdate(FieldUpdate(type->getField("arrayattr"))
.addUpdate(std::make_unique<AddValueUpdate>(std::make_unique<IntFieldValue>(123)))
.addUpdate(std::make_unique<AddValueUpdate>(std::make_unique<IntFieldValue>(456))));