diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-09-01 11:15:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-09-01 15:00:51 +0200 |
commit | 98d70f1ed97218da0657ff9f1e83b782a0f6a22d (patch) | |
tree | 14cc6b9d516f5fea49de36601d344d12f209915d | |
parent | 7d31ca57725e790d6a24e8df9adf0c5a0097186b (diff) |
cid#1513470 Unused value
since...
commit b692eb6680ef63d699ddab07eb719fb1efb219ca
Date: Tue Aug 30 10:05:23 2022 +0200
use more SwPosition::Assign
- rPaM.GetMark()->nNode = rPos.GetNodeIndex()-SwNodeOffset(1);
- rPaM.GetMark()->nContent.Assign( pTNd, nMkContent );
+ rPaM.GetMark()->Assign( rPos.GetNodeIndex() - SwNodeOffset(1) );
+ rPaM.GetMark()->SetContent( nMkContent );
which presumably is ok
Change-Id: I202ee9b7ea3554bd6c2399b8304db15e99af76f6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139154
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sw/source/core/doc/DocumentContentOperationsManager.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/DocumentContentOperationsManager.cxx b/sw/source/core/doc/DocumentContentOperationsManager.cxx index 5011e066eb50..a870e239514a 100644 --- a/sw/source/core/doc/DocumentContentOperationsManager.cxx +++ b/sw/source/core/doc/DocumentContentOperationsManager.cxx @@ -2415,7 +2415,7 @@ bool DocumentContentOperationsManager::MoveRange( SwPaM& rPaM, SwPosition& rPos, pContentStore->Restore(m_rDoc, pOrigNode->GetIndex()-SwNodeOffset(1), 0, true, false, eMode); } }); - pTNd = pTNd->SplitContentNode(rPos, &restoreFunc)->GetTextNode(); + pTNd->SplitContentNode(rPos, &restoreFunc)->GetTextNode(); //A new node was inserted before the orig pTNd and the content up to //rPos moved into it. The old node is returned with the remainder |