summaryrefslogtreecommitdiff
path: root/sc/qa/extras/scsheetlinkobj.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2024-05-21 11:59:04 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2024-05-21 18:14:10 +0200
commitbc456ccf9f81bd36216c199ab42fa2fe77c5e17c (patch)
treefbb277c7e5d5a236093b3234647ba726708b39c0 /sc/qa/extras/scsheetlinkobj.cxx
parent441d8ed9be0e7f831b455a69b8688dcb79a8bc00 (diff)
loplugin:ostr in sc/qa
Change-Id: If731102d69667eaaa088cf804a8c7563b24ded5a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167893 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa/extras/scsheetlinkobj.cxx')
-rw-r--r--sc/qa/extras/scsheetlinkobj.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sc/qa/extras/scsheetlinkobj.cxx b/sc/qa/extras/scsheetlinkobj.cxx
index a435b05b1007..1a8139d3d4df 100644
--- a/sc/qa/extras/scsheetlinkobj.cxx
+++ b/sc/qa/extras/scsheetlinkobj.cxx
@@ -56,7 +56,7 @@ public:
};
ScSheetLinkObj::ScSheetLinkObj()
- : UnoApiTest("/sc/qa/extras/testdocuments")
+ : UnoApiTest(u"/sc/qa/extras/testdocuments"_ustr)
, XNamed(m_directories.getURLFromSrc(u"/sc/qa/extras/testdocuments/ScSheetLinkObj.ods"))
{
}
@@ -71,11 +71,11 @@ uno::Reference<uno::XInterface> ScSheetLinkObj::init()
uno::Reference<sheet::XSheetLinkable> xSL(xSheet, uno::UNO_QUERY_THROW);
xSL->link(m_directories.getURLFromSrc(u"/sc/qa/extras/testdocuments/ScSheetLinkObj.ods"),
- "Sheet1", "", "", sheet::SheetLinkMode_VALUE);
+ u"Sheet1"_ustr, u""_ustr, u""_ustr, sheet::SheetLinkMode_VALUE);
uno::Reference<beans::XPropertySet> xPropSet(xDoc, uno::UNO_QUERY_THROW);
uno::Reference<container::XNameAccess> sheetLinks;
- CPPUNIT_ASSERT(xPropSet->getPropertyValue("SheetLinks") >>= sheetLinks);
+ CPPUNIT_ASSERT(xPropSet->getPropertyValue(u"SheetLinks"_ustr) >>= sheetLinks);
CPPUNIT_ASSERT(sheetLinks.is());
uno::Any aAny = sheetLinks->getByName(sheetLinks->getElementNames()[0]);
@@ -88,7 +88,7 @@ void ScSheetLinkObj::setUp()
{
UnoApiTest::setUp();
// create a calc document
- mxComponent = loadFromDesktop("private:factory/scalc");
+ mxComponent = loadFromDesktop(u"private:factory/scalc"_ustr);
}
CPPUNIT_TEST_SUITE_REGISTRATION(ScSheetLinkObj);