summaryrefslogtreecommitdiff
path: root/stoc/test/uriproc
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-13 15:16:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-13 20:11:48 +0200
commitdf4b0ba2f631e2a99d72011e58ac5e81fbc1dec5 (patch)
treee5bcefcb888f5db573789262319e9ac2647e8204 /stoc/test/uriproc
parenta9cf09844ee35610cbf102895014a7f03f8de100 (diff)
loplugin:ostr in stoc
Change-Id: I638b1e12781264770ce742d3303693e3b7fa82c1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167597 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'stoc/test/uriproc')
-rw-r--r--stoc/test/uriproc/test_uriproc.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/stoc/test/uriproc/test_uriproc.cxx b/stoc/test/uriproc/test_uriproc.cxx
index 02cc9d027ecb..cc33fdb1f33e 100644
--- a/stoc/test/uriproc/test_uriproc.cxx
+++ b/stoc/test/uriproc/test_uriproc.cxx
@@ -1165,7 +1165,7 @@ void Test::testVndSunStarExpand() {
{ "vnd.sun.star.expand:%5C$%5C%24%5C%5C", "$$\\" } };
css::uno::Reference< css::util::XMacroExpander > expander(
m_context->getValueByName(
- "/singletons/com.sun.star.util.theMacroExpander"),
+ u"/singletons/com.sun.star.util.theMacroExpander"_ustr),
css::uno::UNO_QUERY_THROW);
for (std::size_t i = 0; i < std::size(data); ++i) {
css::uno::Reference< css::uri::XUriReference > uriRef(
@@ -1264,7 +1264,7 @@ void Test::testVndSunStarScript() {
"testVndSunStarScript",
static_cast< double >(i)
+ static_cast< double >(j) / 10.0,
- OUString("setParameter"),
+ u"setParameter"_ustr,
originalReference,
uriRef->getUriReference());
}
@@ -1276,7 +1276,7 @@ void Test::testVndSunStarScript() {
TEST_ASSERT_EQUAL(
"testVndSunStarScript",
i,
- OUString("setName"),
+ u"setName"_ustr,
originalReference,
uriRef->getUriReference());
}
@@ -1285,25 +1285,25 @@ void Test::testVndSunStarScript() {
css::uno::Reference< css::uri::XUriReference > uriRef(
m_uriFactory->parse(
- "vnd.sun.star.script:Hello?location=Library.Module"),
+ u"vnd.sun.star.script:Hello?location=Library.Module"_ustr),
css::uno::UNO_SET_THROW);
css::uno::Reference< css::uri::XVndSunStarScriptUrlReference >
scriptUrl(uriRef, css::uno::UNO_QUERY_THROW);
scriptUrl->setParameter(
- "location",
- "foo");
+ u"location"_ustr,
+ u"foo"_ustr);
TEST_ASSERT_EQUAL(
"testVndSunStarScript", sal_Int32(10), sal_Int32(1),
- OUString("vnd.sun.star.script:Hello?location=foo"),
+ u"vnd.sun.star.script:Hello?location=foo"_ustr,
uriRef->getUriReference());
scriptUrl->setParameter(
- "language",
- "StarBasic");
+ u"language"_ustr,
+ u"StarBasic"_ustr);
TEST_ASSERT_EQUAL(
"testVndSunStarScript", sal_Int32(10), sal_Int32(2),
- OUString("vnd.sun.star.script:Hello?location=foo&language=StarBasic"),
+ u"vnd.sun.star.script:Hello?location=foo&language=StarBasic"_ustr,
uriRef->getUriReference());
@@ -1316,8 +1316,8 @@ void Test::testVndSunStarScript() {
}
TEST_ASSERT_EQUAL(
"testVndSunStarScript",
- OUString("illegal arguments"),
- OUString("name"),
+ u"illegal arguments"_ustr,
+ u"name"_ustr,
true,
caughtExpected);
@@ -1325,15 +1325,15 @@ void Test::testVndSunStarScript() {
try {
scriptUrl->setParameter(
OUString(),
- "non-empty");
+ u"non-empty"_ustr);
}
catch( const css::lang::IllegalArgumentException& ) {
caughtExpected = true;
}
TEST_ASSERT_EQUAL(
"testVndSunStarScript",
- OUString("illegal arguments"),
- OUString("parameter"),
+ u"illegal arguments"_ustr,
+ u"parameter"_ustr,
true,
caughtExpected);
}