diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-02-06 12:49:27 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-02-06 17:08:27 +0100 |
commit | 8f5368185661eefcd5e6e6696ac429022e0a983c (patch) | |
tree | ab85b7c7abcf132361612541fb81b8bfd739832e /vcl/qa/cppunit | |
parent | 0a5d4dc25c5521de221f63dbc47c6ba79a51f8fb (diff) |
return string_view from some XmlWalker methods
elides some OString temporaries
Change-Id: Ic07f18eb3c71637593e64128605c1ebfa8e68474
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163044
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/qa/cppunit')
-rw-r--r-- | vcl/qa/cppunit/pdfexport/pdfexport2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qa/cppunit/pdfexport/pdfexport2.cxx b/vcl/qa/cppunit/pdfexport/pdfexport2.cxx index 130d77be8ef3..5942ece0b95e 100644 --- a/vcl/qa/cppunit/pdfexport/pdfexport2.cxx +++ b/vcl/qa/cppunit/pdfexport/pdfexport2.cxx @@ -1178,7 +1178,7 @@ CPPUNIT_TEST_FIXTURE(PdfExportTest2, testPdfUaMetadata) tools::XmlWalker aWalker; CPPUNIT_ASSERT(aWalker.open(&rStream)); - CPPUNIT_ASSERT_EQUAL("xmpmeta"_ostr, aWalker.name()); + CPPUNIT_ASSERT_EQUAL(std::string_view("xmpmeta"), aWalker.name()); bool bPdfUaMarkerFound = false; OString aPdfUaPart; |