diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-20 16:38:40 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-20 21:23:59 +0200 |
commit | 5b98500614f179b8c725a8476d72ff84327c3716 (patch) | |
tree | 5095b8a74b22bbdeedd5832ebd29f2373f365e64 /sw/inc | |
parent | 6b25ea4386cfa48c8cf27a58144306f15b86397b (diff) |
add CanJoinNext method that takes a SwPosition*
part of the process of hiding the internals of SwPosition
Change-Id: I401fa4d98a2e53a082bfb39f3d13315261a0a2ef
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/140246
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/node.hxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/inc/node.hxx b/sw/inc/node.hxx index 0d749899b078..68a33263124f 100644 --- a/sw/inc/node.hxx +++ b/sw/inc/node.hxx @@ -407,7 +407,8 @@ public: virtual SwContentNode *JoinNext(); /** Is it possible to join two nodes? In pIdx the second position can be returned. */ - bool CanJoinNext( SwNodeIndex* pIdx =nullptr ) const; + bool CanJoinNext( SwNodeIndex* pIdx = nullptr ) const; + bool CanJoinNext( SwPosition* pIdx ) const; bool CanJoinPrev( SwNodeIndex* pIdx =nullptr ) const; void MakeStartIndex( SwContentIndex * pIdx ) { pIdx->Assign( this, 0 ); } |