From ddef1e2c017b7d8e421dedc1a0ce722ff4208985 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Sun, 1 May 2022 20:34:18 +0200 Subject: add o3tl::equalsAscii Change-Id: I042b8dcadbf7581de325c161763fe35aecde5ca2 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133694 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/source/ui/condformat/condformatdlgentry.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sc/source/ui/condformat') diff --git a/sc/source/ui/condformat/condformatdlgentry.cxx b/sc/source/ui/condformat/condformatdlgentry.cxx index d67ee8e36f57..77175fa64c64 100644 --- a/sc/source/ui/condformat/condformatdlgentry.cxx +++ b/sc/source/ui/condformat/condformatdlgentry.cxx @@ -17,6 +17,7 @@ #include +#include #include #include #include @@ -605,11 +606,11 @@ const struct { COLORSCALE_FORMULA, "formula" }, }; -ScColorScaleEntryType getTypeForId(const OUString& sId) +ScColorScaleEntryType getTypeForId(std::u16string_view sId) { for (auto& r : TypeIdMap) { - if (sId.equalsAscii(r.sId)) + if (o3tl::equalsAscii(sId, r.sId)) return r.eType; } assert(false); // The id is not in TypeIdMap - something not in sync? -- cgit