summaryrefslogtreecommitdiff
path: root/editeng/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-06-18 10:24:03 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-06-18 13:16:23 +0200
commit0572ef356be49b95b22a4794b7937c8c0914468f (patch)
tree3e6ee889e45f921b310f75972f0629b12609a5e6 /editeng/qa
parent89a80d637e2831d49cdf48921f961b04fd03cffc (diff)
loplugin:ostr in various
Change-Id: I7aa8ed716998a185996482dc561219b398a1c919 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169080 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/qa')
-rw-r--r--editeng/qa/unit/core-test.cxx14
1 files changed, 7 insertions, 7 deletions
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx
index 9cec620ed291..a57a533c42c4 100644
--- a/editeng/qa/unit/core-test.cxx
+++ b/editeng/qa/unit/core-test.cxx
@@ -810,7 +810,7 @@ void Test::testHTMLPaste()
EditDoc& rDoc = aEditEngine.GetEditDoc();
//OString aHTML("<!DOCTYPE html>\n<html><body>test</body></html>"_ostr);
std::vector<OString> aContent({ "<!DOCTYPE html>\n<html><body>test</body></html>"_ostr });
- std::vector<OUString> aMime({ "text/html" });
+ std::vector<OUString> aMime({ u"text/html"_ustr });
uno::Reference<datatransfer::XTransferable> xData(new TestTransferable(aContent, aMime));
// When trying to paste HTML:
@@ -830,7 +830,7 @@ void Test::testHTMLFragmentPaste()
EditEngine aEditEngine(mpItemPool.get());
EditDoc& rDoc = aEditEngine.GetEditDoc();
std::vector<OString> aContent({ "a<b>b</b>c"_ostr });
- std::vector<OUString> aMime({ "text/html" });
+ std::vector<OUString> aMime({ u"text/html"_ustr });
uno::Reference<datatransfer::XTransferable> xData(new TestTransferable(aContent, aMime));
@@ -852,7 +852,7 @@ void Test::testRTFPaste()
EditDoc& rDoc = aEditEngine.GetEditDoc();
std::vector<OString> aContent(
{ "{\\rtf1\\adeflang1025\\ansi{\\ul www.libreoffice.org}}"_ostr });
- std::vector<OUString> aMime({ "text/richtext" });
+ std::vector<OUString> aMime({ u"text/richtext"_ustr });
uno::Reference<datatransfer::XTransferable> xData(new TestTransferable(aContent, aMime));
// When trying to paste HTML:
@@ -863,7 +863,7 @@ void Test::testRTFPaste()
// - Expected: www.libreoffice.org
// - Actual :
// i.e. RTF and plain text paste worked, but not HTML.
- CPPUNIT_ASSERT_EQUAL(OUString("www.libreoffice.org"),
+ CPPUNIT_ASSERT_EQUAL(u"www.libreoffice.org"_ustr,
rDoc.GetParaAsString(static_cast<sal_Int32>(0)));
}
@@ -886,8 +886,8 @@ void Test::testRTFHTMLPaste()
"</head><body lang=\"de-DE\" link=\"#000080\" vlink=\"#800000\" dir=\"ltr\">"
"<p style=\"line-height: 100%; margin-bottom: 0cm\">abc</p></body></html>"_ostr });
std::vector<OUString> aMime(
- { "text/richtext",
- "application/x-openoffice-html-simple;windows_formatname=\"HTML Format\"" });
+ { u"text/richtext"_ustr,
+ u"application/x-openoffice-html-simple;windows_formatname=\"HTML Format\""_ustr });
uno::Reference<datatransfer::XTransferable> xData(new TestTransferable(aContent, aMime));
// When trying to paste HTML:
@@ -897,7 +897,7 @@ void Test::testRTFHTMLPaste()
// expected "abc"
// wrong: www.libreoffice.org
// i.e. HTML is preferred over HTML.
- CPPUNIT_ASSERT_EQUAL(OUString("abc"), rDoc.GetParaAsString(static_cast<sal_Int32>(0)));
+ CPPUNIT_ASSERT_EQUAL(u"abc"_ustr, rDoc.GetParaAsString(static_cast<sal_Int32>(0)));
}
void Test::testMultiParaSelCopyPaste()
{