diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 17:30:58 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 23:23:49 +0100 |
commit | baecfd21797310bb15ab98ca3962445d99e397db (patch) | |
tree | 28e46f4a3ea60e9c861898f85f3a1c4512f69588 /sfx2/qa | |
parent | 235ae98ae614315cfe3bb2baf52ca442bcc2f592 (diff) |
Extended loplugin:ostr: sfx2
Change-Id: I7b2988ed246a0b1b0af0721521ba738ba3de2f27
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159677
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
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) |