diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-22 14:48:30 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-23 11:11:34 +0200 |
commit | e5281dee0a776813ae4136c7286e00b6c141451d (patch) | |
tree | a7ea6c254e68a77a9eacb1e0b603dadf67031cd6 | |
parent | 28bff4bd3947f442c0aebb92217cd0c7b6a53bda (diff) |
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@collabora.co.uk>
-rw-r--r-- | sw/inc/docary.hxx | 3 |
1 files changed, 1 insertions, 2 deletions
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: |