diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2022-04-14 23:01:05 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2022-04-15 08:38:25 +0200 |
commit | 6457b72667de2a203e25a18b0f58cde67d41bbf4 (patch) | |
tree | 22de33129bf678d527fd9090f5ad48ccb7ee50ec /vcl/win | |
parent | dcd969ba5237e897c5767854df30f31fc8b4ee32 (diff) |
loplugin:stringviewparam
Change-Id: Iac1655373f5f30e3499fa5335405fb422fa8dc9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133054
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'vcl/win')
-rw-r--r-- | vcl/win/dtrans/ftransl.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
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) |