summaryrefslogtreecommitdiff
path: root/vcl/source/edit/texteng.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-01-29 09:00:05 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-02-02 07:38:22 +0100
commit056ee671e2d3d15eb1dd9231f4628298cbbd0ede (patch)
tree3f835224b52649e5721c8630c71fbc95a32554f9 /vcl/source/edit/texteng.cxx
parent904263cdd05d86756da68f0b843e876747dcf3a2 (diff)
loplugin:useuniqueptr in TEParaPortions
Change-Id: I530c432176ea6bd338387d2f8855f9f477e8ca75 Reviewed-on: https://gerrit.libreoffice.org/49093 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r--vcl/source/edit/texteng.cxx3
1 files changed, 0 insertions, 3 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 6baa37e08d0a..06d96b716fe5 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -523,7 +523,6 @@ TextPaM TextEngine::ImpConnectParagraphs( sal_uInt32 nLeft, sal_uInt32 nRight )
pLeftPortion->MarkSelectionInvalid( aPaM.GetIndex() );
mpTEParaPortions->Remove( nRight );
- delete pRightPortion;
// the right Node is deleted by EditDoc::ConnectParagraphs()
return aPaM;
@@ -601,7 +600,6 @@ TextPaM TextEngine::ImpDeleteText( const TextSelection& rSel )
void TextEngine::ImpRemoveParagraph( sal_uInt32 nPara )
{
TextNode* pNode = mpDoc->GetNodes()[ nPara ];
- std::unique_ptr<TEParaPortion> xPortion(mpTEParaPortions->GetObject( nPara ));
// the Node is handled by Undo and is deleted if appropriate
mpDoc->GetNodes().erase( mpDoc->GetNodes().begin() + nPara );
@@ -611,7 +609,6 @@ void TextEngine::ImpRemoveParagraph( sal_uInt32 nPara )
delete pNode;
mpTEParaPortions->Remove( nPara );
- xPortion.reset();
ImpParagraphRemoved( nPara );
}