From 042033f1e6da22616cb76c8d950c20c9efecbad5 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Mon, 28 Dec 2020 17:56:40 +0100 Subject: loplugin:stringviewparam: operator + Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- xmloff/qa/unit/style.cxx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'xmloff/qa') diff --git a/xmloff/qa/unit/style.cxx b/xmloff/qa/unit/style.cxx index d9511e3e2a8a..1814d4f4f2ce 100644 --- a/xmloff/qa/unit/style.cxx +++ b/xmloff/qa/unit/style.cxx @@ -7,6 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include + +#include + #include #include @@ -27,7 +31,7 @@ public: void setUp() override; void tearDown() override; uno::Reference& getComponent() { return mxComponent; } - void load(const OUString& rURL); + void load(std::u16string_view rURL); }; void XmloffStyleTest::setUp() @@ -45,7 +49,7 @@ void XmloffStyleTest::tearDown() test::BootstrapFixture::tearDown(); } -void XmloffStyleTest::load(const OUString& rFileName) +void XmloffStyleTest::load(std::u16string_view rFileName) { OUString aURL = m_directories.getURLFromSrc(DATA_DIRECTORY) + rFileName; mxComponent = loadFromDesktop(aURL); @@ -54,7 +58,7 @@ void XmloffStyleTest::load(const OUString& rFileName) CPPUNIT_TEST_FIXTURE(XmloffStyleTest, testFillImageBase64) { // Load a flat ODG that has base64-encoded bitmap as a fill style. - load("fill-image-base64.fodg"); + load(u"fill-image-base64.fodg"); uno::Reference xFactory(getComponent(), uno::UNO_QUERY); uno::Reference xBitmaps( xFactory->createInstance("com.sun.star.drawing.BitmapTable"), uno::UNO_QUERY); -- cgit