[Libreoffice-commits] .: svx/source

Muthu Subramanian sumuthu at kemper.freedesktop.org
Sat Nov 19 02:23:21 PST 2011


 svx/source/svdraw/svdundo.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit ea07e59bb9c49c67881b514ad5932fdd89218a70
Author: Muthu Subramanian <sumuthu at suse.com>
Date:   Sat Nov 19 16:19:32 2011 +0530

    Removing unreachable code.
    
    pUndoSet is set to NULL at the beginning of the method.

diff --git a/svx/source/svdraw/svdundo.cxx b/svx/source/svdraw/svdundo.cxx
index 154713d..5922779 100644
--- a/svx/source/svdraw/svdundo.cxx
+++ b/svx/source/svdraw/svdundo.cxx
@@ -305,11 +305,6 @@ SdrUndoAttrObj::SdrUndoAttrObj(SdrObject& rNewObj, bool bStyleSheet1, bool bSave
 
     if(!bIsGroup || bIs3DScene)
     {
-        if(pUndoSet)
-        {
-            delete pUndoSet;
-        }
-
         pUndoSet = new SfxItemSet(pObj->GetMergedItemSet());
 
         if(bStyleSheet)


More information about the Libreoffice-commits mailing list