diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-02 16:36:43 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-03 16:30:01 +0200 |
commit | 8bf380f7d33f39eaa4cb96b38a82ac18e589deef (patch) | |
tree | 64b6809f8fe45243a762095d903f91cb093ecf77 /desktop | |
parent | a56474374b7a5aeacf41419fc1a6c99007cd7483 (diff) |
add o3tl::matchIgnoreAsciiCase
Change-Id: Iad8e1ed256d84808404bf20ed7a16b05b3db5818
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133753
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/deployment/registry/package/dp_package.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/desktop/source/deployment/registry/package/dp_package.cxx b/desktop/source/deployment/registry/package/dp_package.cxx index 2fc698467931..04ef763b070c 100644 --- a/desktop/source/deployment/registry/package/dp_package.cxx +++ b/desktop/source/deployment/registry/package/dp_package.cxx @@ -32,6 +32,7 @@ #include <rtl/uri.hxx> #include <rtl/ustrbuf.hxx> #include <sal/log.hxx> +#include <o3tl/string_view.hxx> #include <cppuhelper/exc_hlp.hxx> #include <cppuhelper/implbase.hxx> #include <cppuhelper/supportsservice.hxx> @@ -1265,12 +1266,12 @@ Sequence< Reference<deployment::XPackage> > BackendImpl::PackageImpl::getBundle( return *pBundle; } -bool isBundle_( OUString const & mediaType ) +bool isBundle_( std::u16string_view mediaType ) { // xxx todo: additional parsing? - return !mediaType.isEmpty() && - (mediaType.matchIgnoreAsciiCase( "application/vnd.sun.star.package-bundle") || - mediaType.matchIgnoreAsciiCase( "application/vnd.sun.star.legacy-package-bundle")); + return !mediaType.empty() && + (o3tl::matchIgnoreAsciiCase( mediaType, u"application/vnd.sun.star.package-bundle") || + o3tl::matchIgnoreAsciiCase( mediaType, u"application/vnd.sun.star.legacy-package-bundle")); } |