diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-01 20:34:18 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-03 09:12:32 +0200 |
commit | ddef1e2c017b7d8e421dedc1a0ce722ff4208985 (patch) | |
tree | 54e52c86e4e33bcb61eee44706117b1616e99624 /sd/source/ui/unoidl | |
parent | 0a6d946694e4fcb39228c5e1fec58fcfd8a45989 (diff) |
add o3tl::equalsAscii
Change-Id: I042b8dcadbf7581de325c161763fe35aecde5ca2
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133694
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/unoidl')
-rw-r--r-- | sd/source/ui/unoidl/UnoDocumentSettings.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/UnoDocumentSettings.cxx b/sd/source/ui/unoidl/UnoDocumentSettings.cxx index 6b0f64471721..e05cfaf3b5eb 100644 --- a/sd/source/ui/unoidl/UnoDocumentSettings.cxx +++ b/sd/source/ui/unoidl/UnoDocumentSettings.cxx @@ -32,6 +32,7 @@ #include <cppuhelper/supportsservice.hxx> #include <comphelper/propertysethelper.hxx> #include <comphelper/propertysetinfo.hxx> +#include <o3tl/string_view.hxx> #include <tools/debug.hxx> #include <tools/urlobj.hxx> #include <svx/xtable.hxx> @@ -289,10 +290,10 @@ struct { { "BitmapTableURL", XPropertyListType::Bitmap } }; -static XPropertyListType getTypeOfName( const OUString &aName ) +static XPropertyListType getTypeOfName( std::u16string_view aName ) { for(const auto & rURLPropertyName : aURLPropertyNames) { - if( aName.equalsAscii( rURLPropertyName.pName ) ) + if( o3tl::equalsAscii( aName, rURLPropertyName.pName ) ) return rURLPropertyName.t; } return XPropertyListType::Unknown; |