Kaydet (Commit) e5281dee authored tarafından Noel Grandin's avatar Noel Grandin

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: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst 28bff4bd
......@@ -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:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment