diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2023-12-02 16:43:32 +0100 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2023-12-02 17:45:25 +0100 |
commit | 20661c37480c0cadc64d8e99da0463313e02d47c (patch) | |
tree | 6cf67854b8cfde8d002c8865efcd59e346d4507c /sw/qa | |
parent | 91b39a9dad0563726ea2100557e3c88c24be2e61 (diff) |
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 <serval2412@yahoo.fr>
Tested-by: Jenkins
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/extras/layout/layout3.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
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 " |