[Libreoffice-commits] core.git: sw/inc

Noel Grandin (via logerrit) logerrit at kemper.freedesktop.org
Thu May 23 09:12:50 UTC 2019


 sw/inc/docary.hxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit e5281dee0a776813ae4136c7286e00b6c141451d
Author:     Noel Grandin <noel.grandin at collabora.co.uk>
AuthorDate: Wed May 22 14:48:30 2019 +0200
Commit:     Noel Grandin <noel.grandin at collabora.co.uk>
CommitDate: Thu May 23 11:11:34 2019 +0200

    use SAL_MAX_INT32 for npos in SwRedlineTable
    
    sooner or later someone is going to need more than 65535 redlines
    
    Change-Id: I34a913a0beaac14b64b58964ace022210a8eac40
    Reviewed-on: https://gerrit.libreoffice.org/72773
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.grandin at collabora.co.uk>

diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index 6eaaf14b3941..56ba62c654d4 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -330,8 +330,7 @@ public:
     typedef o3tl::sorted_vector<SwRangeRedline*, CompareSwRedlineTable,
                 o3tl::find_partialorder_ptrequals> vector_type;
     typedef vector_type::size_type size_type;
-    static constexpr size_type npos = USHRT_MAX;
-        //TODO: std::numeric_limits<size_type>::max()
+    static constexpr size_type npos = SAL_MAX_INT32;
 private:
     vector_type maVector;
 public:


More information about the Libreoffice-commits mailing list