include/rtl/ustrbuf.hxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 516257d52f2b7af136ca972dc42dfd75779d2be6
Author:     Mike Kaganski <[email protected]>
AuthorDate: Wed Jun 4 07:54:17 2025 +0200
Commit:     Mike Kaganski <[email protected]>
CommitDate: Sat Jun 7 08:14:34 2025 +0200

    Simplify a bit
    
    Change-Id: I62306fe572717c807b68b8329e9c5b04c9935583
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/186158
    Tested-by: Jenkins
    Reviewed-by: Mike Kaganski <[email protected]>

diff --git a/include/rtl/ustrbuf.hxx b/include/rtl/ustrbuf.hxx
index 693ad905910f..05cc5f170d52 100644
--- a/include/rtl/ustrbuf.hxx
+++ b/include/rtl/ustrbuf.hxx
@@ -1669,7 +1669,7 @@ public:
         assert(count >= 0);
         assert(beginIndex <= getLength());
         assert(count <= getLength() - beginIndex);
-        return std::u16string_view(pData->buffer, 
sal_uInt32(pData->length)).substr(beginIndex, count);
+        return std::u16string_view(*this).substr(beginIndex, count);
     }
 #endif
 
  • core.git: include/rtl Mike Kaganski (via logerrit)

Reply via email to