diff options
author | Noel Grandin <noel@peralex.com> | 2012-07-19 14:07:52 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-26 14:30:09 +0200 |
commit | a236f8318a0e05caeec53ccbee8b134f44a98008 (patch) | |
tree | e8e25865b99cd8f89c1077ceda74e1c4867ee571 /sw/inc | |
parent | db9274645596be84d449fdc6e224ddd0959b8ea4 (diff) |
Convert SV_DECL_PTRARR_SORT(_SwFtnIdxs) to o3tl::sorted_vector
Change-Id: I84c4cd5686ea0649ad9ca6c879d51bffe6d693c2
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/ftnidx.hxx | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/inc/ftnidx.hxx b/sw/inc/ftnidx.hxx index 81174e12ddbf..0cc2efa53979 100644 --- a/sw/inc/ftnidx.hxx +++ b/sw/inc/ftnidx.hxx @@ -28,8 +28,9 @@ #ifndef _FTNIDX_HXX #define _FTNIDX_HXX -#include <svl/svarray.hxx> #include <vector> +#include <sal/types.h> +#include <o3tl/sorted_vector.hxx> class SwTxtFtn; class SwNodeIndex; @@ -41,10 +42,12 @@ class SwSectionNode; #define _SwTxtFtn_GetIndex( pFIdx ) (pFIdx->GetTxtNode().GetIndex()) -typedef SwTxtFtn* SwTxtFtnPtr; -SV_DECL_PTRARR_SORT( _SwFtnIdxs, SwTxtFtnPtr, 0 ) +struct CompareSwFtnIdxs +{ + bool operator()(SwTxtFtn* const& lhs, SwTxtFtn* const& rhs) const; +}; -class SwFtnIdxs : public _SwFtnIdxs +class SwFtnIdxs : public o3tl::sorted_vector<SwTxtFtn*> { public: SwFtnIdxs() {} |