diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 14:43:07 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2023-11-19 18:27:05 +0100 |
commit | 6ccd536aae8b5fb5ec01796a1d48d8c5e0b21582 (patch) | |
tree | cff1cbeae4b56b9c1f0e08a4d40ecaa671afcf64 /svtools/qa/unit/testHtmlReader.cxx | |
parent | 23641bffb78fed4db99a0a906b6d80335340c9a3 (diff) |
Extended loplugin:ostr: svtools
Change-Id: I4aa6ab1c132a5666b0ee4a4e9f68aaca58a38ceb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159672
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'svtools/qa/unit/testHtmlReader.cxx')
-rw-r--r-- | svtools/qa/unit/testHtmlReader.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svtools/qa/unit/testHtmlReader.cxx b/svtools/qa/unit/testHtmlReader.cxx index 37f74e903bcc..5605060eab34 100644 --- a/svtools/qa/unit/testHtmlReader.cxx +++ b/svtools/qa/unit/testHtmlReader.cxx @@ -53,7 +53,7 @@ class Test : public CppUnit::TestFixture CPPUNIT_TEST_FIXTURE(Test, testTdf114428) { SvMemoryStream aStream; - OString aDocument("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<html>hello</html>"); + OString aDocument("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<html>hello</html>"_ostr); aStream.WriteBytes(aDocument.getStr(), aDocument.getLength()); aStream.Seek(0); @@ -68,7 +68,7 @@ CPPUNIT_TEST_FIXTURE(Test, testTdf114428) CPPUNIT_TEST_FIXTURE(Test, testLineBreak) { SvMemoryStream aStream; - OString aDocument("aaa<br></br>bbb"); + OString aDocument("aaa<br></br>bbb"_ostr); aStream.WriteBytes(aDocument.getStr(), aDocument.getLength()); aStream.Seek(0); @@ -84,7 +84,7 @@ CPPUNIT_TEST_FIXTURE(Test, testCdata) { // Given a document with CDATA: SvMemoryStream aStream; - OString aDocument("A<![CDATA[B ü <]]>C"); + OString aDocument("A<![CDATA[B ü <]]>C"_ostr); aStream.WriteBytes(aDocument.getStr(), aDocument.getLength()); aStream.Seek(0); |