summaryrefslogtreecommitdiff
path: root/configmgr
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2022-04-26 14:32:18 +0200
committerStephan Bergmann <sbergman@redhat.com>2022-04-26 15:43:59 +0200
commitb1c80b5c0973563c8cbf7c305aef493e9d3f7c0d (patch)
tree16de8fc52f6d2c4588d42f26daa463e3c74dc8fb /configmgr
parent2252dd8098ab60ded2117deadd07e46b12e4133d (diff)
Adapt function's interface to change from OUString to std::u16string_view
...in 6fc3dfd3f1b5cb13101299df42444f2ff0493846 "use more string_view" Change-Id: Ibd1b8748e7a261cdb457a14ba87b1ec68d2a83de Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133438 Tested-by: Jenkins Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'configmgr')
-rw-r--r--configmgr/source/data.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/configmgr/source/data.cxx b/configmgr/source/data.cxx
index 518d08513ad6..f173ee1556fb 100644
--- a/configmgr/source/data.cxx
+++ b/configmgr/source/data.cxx
@@ -21,6 +21,7 @@
#include <algorithm>
#include <cassert>
+#include <cstddef>
#include <com/sun/star/uno/RuntimeException.hpp>
#include <rtl/ref.hxx>
@@ -44,11 +45,11 @@ namespace configmgr {
namespace {
bool decode(
- std::u16string_view encoded, sal_Int32 begin, sal_Int32 end,
+ std::u16string_view encoded, std::size_t begin, std::size_t end,
OUString * decoded)
{
assert(
- begin >= 0 && begin <= end && end <= static_cast<sal_Int32>(encoded.size()) &&
+ begin <= end && end <= encoded.size() &&
decoded != nullptr);
OUStringBuffer buf(end - begin);
while (begin != end) {