diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2022-10-07 19:41:56 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-10-07 22:03:37 +0200 |
commit | 4a07e9e31a6cd93958f94354a15325af098c93b8 (patch) | |
tree | 80b7c0ac8126ef6984a5cc48dfa04162d5e2fda7 /sw/source | |
parent | 83b6e22b37ffcd36d6030ab0c044fd7bb848f0df (diff) |
use more SwPosition
part of the process of hiding the internals of SwPosition
Change-Id: I3107ad6cb8636125ec98342ec4ed69d2c703a74b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141090
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/docnode/ndtbl.cxx | 6 | ||||
-rw-r--r-- | sw/source/filter/inc/msfilter.hxx | 2 | ||||
-rw-r--r-- | sw/source/filter/ww8/writerhelper.cxx | 6 |
3 files changed, 7 insertions, 7 deletions
diff --git a/sw/source/core/docnode/ndtbl.cxx b/sw/source/core/docnode/ndtbl.cxx index 341bc2188af8..6b384f9a18a0 100644 --- a/sw/source/core/docnode/ndtbl.cxx +++ b/sw/source/core/docnode/ndtbl.cxx @@ -2377,17 +2377,17 @@ void SwTableNode::MakeFramesForAdjacentContentNode(const SwNodeIndex & rIdx) /** * Create a TableFrame for every Shell and insert before the corresponding ContentFrame. */ -void SwTableNode::MakeOwnFrames(SwNodeIndex* pIdxBehind) +void SwTableNode::MakeOwnFrames(SwPosition* pIdxBehind) { SwNode *pNd = GetNodes().FindPrvNxtFrameNode( *this, EndOfSectionNode() ); if( !pNd ) { if (pIdxBehind) - *pIdxBehind = *this; + pIdxBehind->Assign(*this); return; } if (pIdxBehind) - *pIdxBehind = *pNd; + pIdxBehind->Assign(*pNd); SwFrame *pFrame( nullptr ); SwLayoutFrame *pUpper( nullptr ); diff --git a/sw/source/filter/inc/msfilter.hxx b/sw/source/filter/inc/msfilter.hxx index 1a3626bdd521..70ef8d12aa80 100644 --- a/sw/source/filter/inc/msfilter.hxx +++ b/sw/source/filter/inc/msfilter.hxx @@ -289,7 +289,7 @@ namespace sw explicit InsertedTablesManager(const SwDoc &rDoc); private: bool mbHasRoot; - std::map<std::unique_ptr<InsertedTableListener>, SwNodeIndex*> maTables; + std::map<std::unique_ptr<InsertedTableListener>, SwPosition*> maTables; }; void MoveAttrFieldmarkInserted(SwFltPosition& rMkPos, SwFltPosition& rPtPos, const SwPosition& rPos); diff --git a/sw/source/filter/ww8/writerhelper.cxx b/sw/source/filter/ww8/writerhelper.cxx index ebb9e855f593..8b14ceb70b79 100644 --- a/sw/source/filter/ww8/writerhelper.cxx +++ b/sw/source/filter/ww8/writerhelper.cxx @@ -887,7 +887,7 @@ namespace sw if (pFrameFormat != nullptr) { - SwNodeIndex *pIndex = aTable.second; + SwPosition *pIndex = aTable.second; pTable->DelFrames(); pTable->MakeOwnFrames(pIndex); } @@ -899,11 +899,11 @@ namespace sw { if (!mbHasRoot) return; - //Associate this tablenode with this after position, replace an //old + //Associate this tablenode with this after position, replace an old //node association if necessary maTables.emplace( std::unique_ptr<InsertedTableListener>(new InsertedTableListener(rTableNode)), - &(rPaM.GetPoint()->nNode)); + rPaM.GetPoint()); } } |