sw/qa/extras/layout/layout3.cxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-)
New commits: commit 20661c37480c0cadc64d8e99da0463313e02d47c Author: Julien Nabet <serval2...@yahoo.fr> AuthorDate: Sat Dec 2 16:43:32 2023 +0100 Commit: Julien Nabet <serval2...@yahoo.fr> CommitDate: Sat Dec 2 17:45:25 2023 +0100 Extended loplugin:ostr: sw/qa/extras/layout/layout3.cxx Change-Id: I1b86da0ef1ccdd2ccb83f489563f634605c25b0e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160245 Reviewed-by: Julien Nabet <serval2...@yahoo.fr> Tested-by: Jenkins diff --git a/sw/qa/extras/layout/layout3.cxx b/sw/qa/extras/layout/layout3.cxx index 27f9e0a2f59b..ea2c3a52d24e 100644 --- a/sw/qa/extras/layout/layout3.cxx +++ b/sw/qa/extras/layout/layout3.cxx @@ -2086,7 +2086,7 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter3, testTdf152307) // XML dump and some basic assertions sal_Int32 nPage = 7, nPages = 0; xmlDocUniquePtr pXmlDoc = parseLayoutDump(); - nPages = countXPathNodes(pXmlDoc, "/root/page"); + nPages = countXPathNodes(pXmlDoc, "/root/page"_ostr); CPPUNIT_ASSERT_MESSAGE("tdf152307.odt / testTdf152307: Not enough pages.", nPage < nPages); assertXPath(pXmlDoc, "/root/page[" + OString::number(nPage) + "]/body/section", 1); @@ -2103,11 +2103,12 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter3, testTdf152307) "/root/page[" + OString::number(nPage) + "]/body/section/tab[" + OString::number(nTables) + "]/row[" + OString::number(nRowsLastTable) + "]/infos/bounds", - "bottom") + "bottom"_ostr) .toInt32(); // Where does the footer start (footer/info/bounds/top)? sal_Int32 nFooterTop - = getXPath(pXmlDoc, "/root/page[" + OString::number(nPage) + "]/footer/infos/bounds", "top") + = getXPath(pXmlDoc, "/root/page[" + OString::number(nPage) + "]/footer/infos/bounds", + "top"_ostr) .toInt32(); // Is the bottom value of the last row above the top value of the footer? OString aMsg = "tdf152307.odt / testTdf152307: Bottom value of last table row on page "