summaryrefslogtreecommitdiff
path: root/sw/source/core/unocore/unotext.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/unocore/unotext.cxx')
-rw-r--r--sw/source/core/unocore/unotext.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/sw/source/core/unocore/unotext.cxx b/sw/source/core/unocore/unotext.cxx
index 5fed8c91de5d..f4033be51050 100644
--- a/sw/source/core/unocore/unotext.cxx
+++ b/sw/source/core/unocore/unotext.cxx
@@ -969,8 +969,7 @@ SwXText::setString(const OUString& rString)
if(bInsertNodes)
{
GetDoc()->getIDocumentContentOperations().AppendTextNode( aStartPos );
- SwPosition aEndPos(aEndIdx.GetNode());
- SwPaM aPam(aEndPos);
+ SwPaM aPam(aEndIdx.GetNode());
GetDoc()->getIDocumentContentOperations().AppendTextNode( *aPam.Start() );
}
}
@@ -1272,8 +1271,7 @@ SwXText::Impl::finishOrAppendParagraph(
// find end node, go backward - don't skip tables because the new
// paragraph has to be the last node
//aPam.Move( fnMoveBackward, GoInNode );
- SwPosition aInsertPosition( *pStartNode->EndOfSectionNode(), SwNodeOffset(-1) );
- SwPaM aPam(aInsertPosition);
+ SwPaM aPam(*pStartNode->EndOfSectionNode(), SwNodeOffset(-1));
// If we got a position reference, then the insert point is not the end of
// the document.
if (xInsertPosition.is())