diff options
Diffstat (limited to 'sfx2/qa')
-rw-r--r-- | sfx2/qa/cppunit/doc.cxx | 2 | ||||
-rw-r--r-- | sfx2/qa/cppunit/test_misc.cxx | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sfx2/qa/cppunit/doc.cxx b/sfx2/qa/cppunit/doc.cxx index 902ac48646e5..9eea6d29390d 100644 --- a/sfx2/qa/cppunit/doc.cxx +++ b/sfx2/qa/cppunit/doc.cxx @@ -126,7 +126,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSetDocumentPropertiesUpdate) } } } -)json"); +)json"_ostr); uno::Sequence<beans::PropertyValue> aArgs = comphelper::containerToSequence(aArgsVec); dispatchCommand(mxComponent, ".uno:SetDocumentProperties", aArgs); diff --git a/sfx2/qa/cppunit/test_misc.cxx b/sfx2/qa/cppunit/test_misc.cxx index c93a3ad7335a..a59a1128e7df 100644 --- a/sfx2/qa/cppunit/test_misc.cxx +++ b/sfx2/qa/cppunit/test_misc.cxx @@ -76,11 +76,11 @@ CPPUNIT_TEST_FIXTURE(MiscTest, testODFCustomMetadata) // check that custom metadata is preserved xmlDocUniquePtr pXmlDoc = parseExport("meta.xml"); - assertXPathContent(pXmlDoc, "/office:document-meta/office:meta/bork", "bork"); - assertXPath(pXmlDoc, "/office:document-meta/office:meta/foo:bar", 1); - assertXPath(pXmlDoc, "/office:document-meta/office:meta/foo:bar/baz:foo", 1); - assertXPath(pXmlDoc, "/office:document-meta/office:meta/foo:bar/baz:foo[@baz:bar='foo']"); - assertXPathContent(pXmlDoc, "/office:document-meta/office:meta/foo:bar/foo:baz", "bar"); + assertXPathContent(pXmlDoc, "/office:document-meta/office:meta/bork"_ostr, "bork"); + assertXPath(pXmlDoc, "/office:document-meta/office:meta/foo:bar"_ostr, 1); + assertXPath(pXmlDoc, "/office:document-meta/office:meta/foo:bar/baz:foo"_ostr, 1); + assertXPath(pXmlDoc, "/office:document-meta/office:meta/foo:bar/baz:foo[@baz:bar='foo']"_ostr); + assertXPathContent(pXmlDoc, "/office:document-meta/office:meta/foo:bar/foo:baz"_ostr, "bar"); } CPPUNIT_TEST_FIXTURE(MiscTest, testNoThumbnail) |