diff options
Diffstat (limited to 'unoidl/source/unoidl-check.cxx')
-rw-r--r-- | unoidl/source/unoidl-check.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unoidl/source/unoidl-check.cxx b/unoidl/source/unoidl-check.cxx index 58b179ea41b0..253079024106 100644 --- a/unoidl/source/unoidl-check.cxx +++ b/unoidl/source/unoidl-check.cxx @@ -886,10 +886,10 @@ void checkMap( } } -bool valid(OUString const & identifier) { - for (sal_Int32 i = 0;; ++i) { - i = identifier.indexOf('_', i); - if (i == -1) { +bool valid(std::u16string_view identifier) { + for (size_t i = 0;; ++i) { + i = identifier.find('_', i); + if (i == std::u16string_view::npos) { return true; } if (!rtl::isAsciiUpperCase(identifier[0]) || identifier[i - 1] == '_') { |