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 --- avmedia/source/framework/mediaitem.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'avmedia') diff --git a/avmedia/source/framework/mediaitem.cxx b/avmedia/source/framework/mediaitem.cxx index 3b83f3853ce8..f42065e8e81e 100644 --- a/avmedia/source/framework/mediaitem.cxx +++ b/avmedia/source/framework/mediaitem.cxx @@ -478,7 +478,7 @@ bool EmbedMedia(uno::Reference const& xModel, } bool CreateMediaTempFile(uno::Reference const& xInStream, - OUString& o_rTempFileURL, const OUString& rDesiredExtension) + OUString& o_rTempFileURL, std::u16string_view rDesiredExtension) { OUString tempFileURL; ::osl::FileBase::RC const err = @@ -489,7 +489,7 @@ bool CreateMediaTempFile(uno::Reference const& xInStream, return false; } - if (!rDesiredExtension.isEmpty()) + if (!rDesiredExtension.empty()) { OUString newTempFileURL = tempFileURL + rDesiredExtension; if (osl::File::move(tempFileURL, newTempFileURL) != osl::FileBase::E_None) -- cgit