configmgr/source/data.cxx |    5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

New commits:
commit b1c80b5c0973563c8cbf7c305aef493e9d3f7c0d
Author:     Stephan Bergmann <sberg...@redhat.com>
AuthorDate: Tue Apr 26 14:32:18 2022 +0200
Commit:     Stephan Bergmann <sberg...@redhat.com>
CommitDate: Tue Apr 26 15:43:59 2022 +0200

    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 <sberg...@redhat.com>

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) {

Reply via email to