summaryrefslogtreecommitdiffstats
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-31 18:53:04 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-31 20:26:45 +0200
commit64b2207025388b6a87462f912584228a10301628 (patch)
tree86bcb6b87d92b374ff9168558b73826edf56c120 /sw
parent_SetGetExpFlds: this looks simpler with upper_bound (diff)
downloadcore-64b2207025388b6a87462f912584228a10301628.tar.gz
core-64b2207025388b6a87462f912584228a10301628.zip
_SwRedlineTbl: fix STL conversion:
It appears that the operator== for SwRedline does pointer equality check, so ddd84d08c9bb6e00fbd9a73bd52a28688a8c1ba7 changed the semantics; use o3tl::find_partialorder_ptrequals to fix it. Change-Id: I8d4a13da9543ef8a7f6e38c05eef3a2c9918e421
Diffstat (limited to 'sw')
-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 8270a742c6bc..7c9f92884694 100644
--- a/sw/inc/docary.hxx
+++ b/sw/inc/docary.hxx
@@ -143,7 +143,10 @@ struct CompareSwRedlineTbl
{
bool operator()(SwRedline* const &lhs, SwRedline* const &rhs) const;
};
-class _SwRedlineTbl : public o3tl::sorted_vector<SwRedline*, CompareSwRedlineTbl> {
+class _SwRedlineTbl
+ : public o3tl::sorted_vector<SwRedline*, CompareSwRedlineTbl,
+ o3tl::find_partialorder_ptrequals<SwRedline*, CompareSwRedlineTbl> >
+{
public:
~_SwRedlineTbl();
};