diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-20 14:43:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2024-03-22 08:00:40 +0100 |
commit | 284d80825ec7cf3c39af91959e4bf3d539b066f4 (patch) | |
tree | a29b81e498eefd4f1224795f4d4058d7344a6153 /sw/inc | |
parent | 80570de114d31f4ae5114b6fd6fd3ea365b14d63 (diff) |
tdf#158556 speed up SwNodes::RemoveNode
Change-Id: I49daf93793c67da6261081fce92e1fed1a71248b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/165139
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/bparr.hxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sw/inc/bparr.hxx b/sw/inc/bparr.hxx index 9f3e17f8d140..4f831c8bab19 100644 --- a/sw/inc/bparr.hxx +++ b/sw/inc/bparr.hxx @@ -91,6 +91,11 @@ public: void Move( sal_Int32 from, sal_Int32 to ); void Replace( sal_Int32 pos, BigPtrEntry* p); + /** Speed up the complicated removal logic in SwNodes::RemoveNode. + Returns the entry before pNotTheOne. + */ + BigPtrEntry* ReplaceTheOneAfter( BigPtrEntry* pNotTheOne, BigPtrEntry* pNewEntry); + SW_DLLPUBLIC BigPtrEntry* operator[]( sal_Int32 ) const; }; |