summaryrefslogtreecommitdiff
path: root/ucb/source/sorter/sortresult.hxx
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-12-08 21:49:47 +0100
committerMichael Stahl <mstahl@redhat.com>2016-12-09 11:41:36 +0100
commit96ec36cf261eec3ec07f3caa2673a916571c4287 (patch)
treef89abce872f8b08d808c4ba2c52615345e158332 /ucb/source/sorter/sortresult.hxx
parenta564821eb9e991774195120e6965b2a8b1419dc5 (diff)
ucb: replace "SimpleList" trash
* pointless use of void* * stupid casting everywhere * ridiculously overloaded Remove() * defensively programmed implementation Change-Id: I1c86ffac636cafbe3e13e668a65a2b14377b6e95
Diffstat (limited to 'ucb/source/sorter/sortresult.hxx')
-rw-r--r--ucb/source/sorter/sortresult.hxx26
1 files changed, 2 insertions, 24 deletions
diff --git a/ucb/source/sorter/sortresult.hxx b/ucb/source/sorter/sortresult.hxx
index af481be1520f..c7c7b2609cf8 100644
--- a/ucb/source/sorter/sortresult.hxx
+++ b/ucb/source/sorter/sortresult.hxx
@@ -85,28 +85,6 @@ public:
};
-class SimpleList
-{
- std::deque < void* > maData;
-
-public:
- SimpleList(){}
- ~SimpleList(){ Clear(); }
-
- sal_uInt32 Count() { return (sal_uInt32) maData.size(); }
- void Clear() { maData.clear(); }
-
- void Remove( sal_uInt32 nPos );
- void Remove( void* pData );
-
- void Append( void* pData )
- { maData.push_back( pData ); }
- void Insert( void* pData, sal_uInt32 nPos );
- void* GetObject( sal_uInt32 nPos ) const;
- void Replace( void* pData, sal_uInt32 nPos );
-};
-
-
#define RESULTSET_SERVICE_NAME "com.sun.star.ucb.SortedResultSet"
@@ -131,8 +109,8 @@ class SortedResultSet: public cppu::WeakImplHelper <
SortInfo* mpSortInfo;
osl::Mutex maMutex;
SortedEntryList maS2O; // maps the sorted entries to the original ones
- SimpleList maO2S; // maps the original Entries to the sorted ones
- SimpleList maModList; // keeps track of modified entries
+ std::deque<sal_IntPtr> m_O2S; /// maps the original Entries to the sorted ones
+ std::deque<SortListData*> m_ModList; /// keeps track of modified entries
sal_IntPtr mnLastSort; // index of the last sorted entry;
sal_IntPtr mnCurEntry; // index of the current entry
sal_IntPtr mnCount; // total count of the elements