vcl/win/dtrans/ftransl.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
New commits: commit 6457b72667de2a203e25a18b0f58cde67d41bbf4 Author: Stephan Bergmann <sberg...@redhat.com> AuthorDate: Thu Apr 14 23:01:05 2022 +0200 Commit: Stephan Bergmann <sberg...@redhat.com> CommitDate: Fri Apr 15 08:38:25 2022 +0200 loplugin:stringviewparam Change-Id: Iac1655373f5f30e3499fa5335405fb422fa8dc9a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133054 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sberg...@redhat.com> diff --git a/vcl/win/dtrans/ftransl.cxx b/vcl/win/dtrans/ftransl.cxx index 2d5ecd492754..ad41a95b0ae2 100644 --- a/vcl/win/dtrans/ftransl.cxx +++ b/vcl/win/dtrans/ftransl.cxx @@ -17,6 +17,11 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <sal/config.h> + +#include <string_view> + +#include <o3tl/string_view.hxx> #include <osl/diagnose.h> #include "ftransl.hxx" @@ -418,9 +423,9 @@ void findStdFormatIdOrNativeFormatNameForFullMediaType( } } -bool isTextPlainMediaType( const OUString& fullMediaType ) +bool isTextPlainMediaType( std::u16string_view fullMediaType ) { - return fullMediaType.equalsIgnoreAsciiCase("text/plain"); + return o3tl::equalsIgnoreAsciiCase(fullMediaType, u"text/plain"); } DataFlavor mkDataFlv(const OUString& cnttype, const OUString& hpname, Type dtype)