diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-12-28 17:56:40 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-12-29 16:42:33 +0100 |
commit | 042033f1e6da22616cb76c8d950c20c9efecbad5 (patch) | |
tree | 26b3f1f42d067506f44550b410f3fb9640616a5b /vcl/qa/api | |
parent | ccfd8e9d09f9ac0a0ea92d0f378391006faaf934 (diff) |
loplugin:stringviewparam: operator +
Change-Id: I044dd21b63d7eb03224675584fa143009c6b6008
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108418
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/qa/api')
-rw-r--r-- | vcl/qa/api/XGraphicTest.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/vcl/qa/api/XGraphicTest.cxx b/vcl/qa/api/XGraphicTest.cxx index 3694e52ce38f..2dfe4f132346 100644 --- a/vcl/qa/api/XGraphicTest.cxx +++ b/vcl/qa/api/XGraphicTest.cxx @@ -7,6 +7,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <sal/config.h> + +#include <string_view> + #include <test/bootstrapfixture.hxx> #include <com/sun/star/graphic/XGraphic.hpp> @@ -32,7 +36,7 @@ public: { } - OUString getFullUrl(const OUString& sFileName) + OUString getFullUrl(std::u16string_view sFileName) { return m_directories.getURLFromSrc(gaDataUrl) + sFileName; } @@ -113,7 +117,7 @@ void XGraphicTest::testGraphicDescriptor() void XGraphicTest::testGraphicProvider() { - OUString aGraphicURL = getFullUrl("TestGraphic.png"); + OUString aGraphicURL = getFullUrl(u"TestGraphic.png"); { // Load lazy uno::Reference<uno::XComponentContext> xContext(comphelper::getProcessComponentContext()); |