summaryrefslogtreecommitdiffstats
path: root/sw/inc/tblsel.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2012-07-19 14:03:42 +0200
committerMichael Stahl <mstahl@redhat.com>2012-07-26 14:30:09 +0200
commitdeaa69b1558ef76f5338a714fdedaeccf9394096 (patch)
treeaca62c2ec074c3418aefa4046cf9b1a935ddda3f /sw/inc/tblsel.hxx
parentfdo#51252 Disable copying share/prereg/bundled to avoid startup crashes (diff)
downloadcore-deaa69b1558ef76f5338a714fdedaeccf9394096.tar.gz
core-deaa69b1558ef76f5338a714fdedaeccf9394096.zip
Convert SV_DECL_PTRARR_SORT(SwSelBoxes) to o3tl::sorted_vector
Change-Id: I4af9e86257a9e40b91351fd34ac70fe053d02367
Diffstat (limited to 'sw/inc/tblsel.hxx')
-rw-r--r--sw/inc/tblsel.hxx13
1 files changed, 10 insertions, 3 deletions
diff --git a/sw/inc/tblsel.hxx b/sw/inc/tblsel.hxx
index 778333d2e000..5d176ad05b26 100644
--- a/sw/inc/tblsel.hxx
+++ b/sw/inc/tblsel.hxx
@@ -28,13 +28,13 @@
#ifndef _TBLSEL_HXX
#define _TBLSEL_HXX
-#include <svl/svarray.hxx>
#include <swtable.hxx>
#include <swrect.hxx>
#include "swdllapi.h"
#include <deque>
#include <boost/ptr_container/ptr_vector.hpp>
+#include <o3tl/sorted_vector.hxx>
class SwCrsrShell;
class SwCursor;
@@ -51,8 +51,15 @@ class SwUndoTblMerge;
class SwCellFrm;
typedef ::std::deque< SwCellFrm* > SwCellFrms;
-typedef SwTableBox* SwTableBoxPtr;
-SV_DECL_PTRARR_SORT( SwSelBoxes, SwTableBoxPtr, 10 )
+
+struct CompareSwSelBoxes
+{
+ bool operator()(SwTableBox* const& lhs, SwTableBox* const& rhs) const
+ {
+ return lhs->GetSttIdx() < rhs->GetSttIdx();
+ }
+};
+class SwSelBoxes : public o3tl::sorted_vector<SwTableBox*, CompareSwSelBoxes> {};
// Collects all boxes in table that are selected.
// Selection gets extended in given direction according to enum-parameter.