summaryrefslogtreecommitdiff
path: root/unoidl/source/legacyprovider.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'unoidl/source/legacyprovider.cxx')
-rw-r--r--unoidl/source/legacyprovider.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/unoidl/source/legacyprovider.cxx b/unoidl/source/legacyprovider.cxx
index 1d147a975582..ab99fcf59dd1 100644
--- a/unoidl/source/legacyprovider.cxx
+++ b/unoidl/source/legacyprovider.cxx
@@ -26,9 +26,9 @@ namespace unoidl::detail {
namespace {
-std::vector< OUString > translateAnnotations(OUString const & documentation) {
+std::vector< OUString > translateAnnotations(std::u16string_view documentation) {
std::vector< OUString > ans;
- if (documentation.indexOf("@deprecated") != -1) {
+ if (documentation.find(u"@deprecated") != std::u16string_view::npos) {
//TODO: this check is somewhat crude
ans.push_back("deprecated");
}