diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2024-10-03 11:40:13 +0500 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2024-10-05 10:06:44 +0200 |
commit | a6a69211230226ac8b6c17d016fc19eb8ee11261 (patch) | |
tree | 321a5c4a7657baa966185d3757595ff6107d820a /embeddedobj | |
parent | 95e2bdf97d987c845927bd44210547fd3c2f2387 (diff) |
Use good old string literals in assertXPath and friends
These are only sent to an external API expecting char*-like strings,
or for comparison. Having every assertXPath having three of _[ou]str
is too much syntactic noise, making the unit tests almost unreadable.
Change-Id: Ic004a36ea75e7bfe0b96f405c40f926a957b51cc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/174416
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'embeddedobj')
-rw-r--r-- | embeddedobj/qa/cppunit/msole.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/embeddedobj/qa/cppunit/msole.cxx b/embeddedobj/qa/cppunit/msole.cxx index 6bd849584a4a..187472b0a79a 100644 --- a/embeddedobj/qa/cppunit/msole.cxx +++ b/embeddedobj/qa/cppunit/msole.cxx @@ -126,7 +126,7 @@ CPPUNIT_TEST_FIXTURE(Test, testSaveOnThread) // - Expected: 0.1665in // - Actual : 1.9685in // i.e. we wrote a hardcoded 5cm width, not the real one. - assertXPath(pXmlDoc, "//style:graphic-properties", "visible-area-width", "0.1665in"); + assertXPath(pXmlDoc, "//style:graphic-properties", "visible-area-width", u"0.1665in"); } CPPUNIT_PLUGIN_IMPLEMENT(); |