[Libreoffice-commits] .: editeng/source

Kohei Yoshida kohei at kemper.freedesktop.org
Wed Mar 28 23:00:41 PDT 2012


 editeng/source/editeng/impedit2.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit b512c3ca29735f15383c5f6215348fccfaddd40e
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date:   Thu Mar 29 02:00:02 2012 -0400

    No need to delete ParaPortion outside of the container any more.

diff --git a/editeng/source/editeng/impedit2.cxx b/editeng/source/editeng/impedit2.cxx
index 04cebce..e7d2bbc 100644
--- a/editeng/source/editeng/impedit2.cxx
+++ b/editeng/source/editeng/impedit2.cxx
@@ -2477,18 +2477,15 @@ void ImpEditEngine::ImpRemoveParagraph( sal_uInt16 nPara )
 {
     ContentNode* pNode = aEditDoc.SaveGetObject( nPara );
     ContentNode* pNextNode = aEditDoc.SaveGetObject( nPara+1 );
-    ParaPortion* pPortion = GetParaPortions().SaveGetObject( nPara );
 
     OSL_ENSURE( pNode, "Blind Node in ImpRemoveParagraph" );
-    OSL_ENSURE( pPortion, "Blind Portion in ImpRemoveParagraph(2)" );
 
     DeletedNodeInfo* pInf = new DeletedNodeInfo( (sal_uLong)pNode, nPara );
     aDeletedNodes.Insert( pInf, aDeletedNodes.Count() );
 
     // The node is managed by the undo and possibly destroyed!
-    /* delete */ aEditDoc.Remove( nPara );
+    aEditDoc.Remove( nPara );
     GetParaPortions().Remove( nPara );
-    delete pPortion;
 
     if ( IsCallParaInsertedOrDeleted() )
     {


More information about the Libreoffice-commits mailing list