summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2023-11-19 13:22:27 +0100
committerStephan Bergmann <sbergman@redhat.com>2023-11-19 14:42:30 +0100
commit694763542e32b1e6354f919526751677945f1cd9 (patch)
tree42bf3284fd9c4a920628ad77226f9ade21f5ef99
parent0ea539f0eacfc22f8c1745ff261cbce45f5418e8 (diff)
Extended loplugin:ostr: writerfilter
Change-Id: I83bdd43357d07bce18a2cf286e639c816846e7d2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/159665 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
-rw-r--r--writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx b/writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx
index 5afad898f8e4..a62283c98388 100644
--- a/writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx
+++ b/writerfilter/qa/cppunittests/dmapper/SettingsTable.cxx
@@ -75,9 +75,11 @@ CPPUNIT_TEST_FIXTURE(Test, testAddVerticalFrameOffsetsRTF)
OString aDump = xDumper->dump("layout").toUtf8();
auto pCharBuffer = reinterpret_cast<const xmlChar*>(aDump.getStr());
xmlDocUniquePtr pXmlDoc(xmlParseDoc(pCharBuffer));
- sal_Int32 nFlyBottom = getXPath(pXmlDoc, "//fly/infos/bounds", "bottom").toInt32();
- sal_Int32 nTableFrameTop = getXPath(pXmlDoc, "//body/tab/infos/bounds", "top").toInt32();
- sal_Int32 nTableTopMargin = getXPath(pXmlDoc, "//body/tab/infos/prtBounds", "top").toInt32();
+ sal_Int32 nFlyBottom = getXPath(pXmlDoc, "//fly/infos/bounds"_ostr, "bottom"_ostr).toInt32();
+ sal_Int32 nTableFrameTop
+ = getXPath(pXmlDoc, "//body/tab/infos/bounds"_ostr, "top"_ostr).toInt32();
+ sal_Int32 nTableTopMargin
+ = getXPath(pXmlDoc, "//body/tab/infos/prtBounds"_ostr, "top"_ostr).toInt32();
sal_Int32 nTableTop = nTableFrameTop + nTableTopMargin;
// Without the accompanying fix in place, this test would have failed with:
// - Expected greater than: 2747