summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2012-07-31 19:13:45 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-31 20:26:46 +0200
commit3a1d91045b339c00267771acd60ed5d53a90c409 (patch)
tree9465b219f06a93ea07c368c5e6ce4d7daff07cf5 /sw
parent24a8ad1591e11e2905318d31106a5568f92cac2b (diff)
SwContentArr: fix STL conversion:
It appears that the operator== for SwContent always returns false, so 81181891c93faee024799991317ac2c451f4c0c4 changed the semantics; use o3tl::find_partialorder_ptrequals to fix it. Change-Id: Ib4f040f03a9eaeec9a2973f5a93a22a387232017
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/utlui/content.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/ui/utlui/content.cxx b/sw/source/ui/utlui/content.cxx
index 8e6ea32bb96a..f150239206db 100644
--- a/sw/source/ui/utlui/content.cxx
+++ b/sw/source/ui/utlui/content.cxx
@@ -105,7 +105,9 @@ using namespace ::com::sun::star::container;
#define NAVI_BOOKMARK_DELIM (sal_Unicode)1
class SwContentArr
- : public o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent> >
+ : public o3tl::sorted_vector<SwContent*, o3tl::less_ptr_to<SwContent>,
+ o3tl::find_partialorder_ptrequals<SwContent*,
+ o3tl::less_ptr_to<SwContent> > >
{
public:
~SwContentArr() { DeleteAndDestroyAll(); }