summaryrefslogtreecommitdiff
path: root/sw/inc
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-01 13:09:25 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-03-01 13:12:42 +0100
commit9ca8a63fff65acf2ea13b391495ad232f4636548 (patch)
tree31a8e255ec7029e08b847d33d8567c22b32b2a56 /sw/inc
parentd9262e19c942f2719bfa7de3a5059e4f6e0039c6 (diff)
Use consistent integer types in the SwRedlineTable interface
ddd84d08c9bb6e00fbd9a73bd52a28688a8c1ba7 "Convert SV_DECL_PTRARR_SORT_DEL(_SwRedlineTbl) to o3tl::sorted_vector" had introduced size and operator[] operating on underlying vector's size_type, but had left the other functions at sal_uInt16. Keep everything at sal_uInt16 for now until fixing everything to use that underlying vector size_type instead. Change-Id: I92570dcb8ab5fa88b52e2b24899b833829693a88
Diffstat (limited to 'sw/inc')
-rw-r--r--sw/inc/docary.hxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/inc/docary.hxx b/sw/inc/docary.hxx
index 45f9e4509ed3..2de106f9fc1e 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -318,7 +318,10 @@ class SwRedlineTable
public:
typedef o3tl::sorted_vector<SwRangeRedline*, CompareSwRedlineTable,
o3tl::find_partialorder_ptrequals> vector_type;
- typedef vector_type::size_type size_type;
+ typedef sal_uInt16 size_type;
+ //TOOD: should be vector_type::size_type, but then all the uses of
+ // sal_uInt16 in this class that represent positions in maVector need to
+ // be changed, too
private:
vector_type maVector;
public: