summaryrefslogtreecommitdiff
path: root/sw/source/core/undo/undel.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/undo/undel.cxx')
-rw-r--r--sw/source/core/undo/undel.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/sw/source/core/undo/undel.cxx b/sw/source/core/undo/undel.cxx
index a9c7dca25ba5..0fa089763fc1 100644
--- a/sw/source/core/undo/undel.cxx
+++ b/sw/source/core/undo/undel.cxx
@@ -128,7 +128,10 @@ SwUndoDelete::SwUndoDelete(
{
m_pRedlSaveData = new SwRedlineSaveDatas;
if( !FillSaveData( rPam, *m_pRedlSaveData ))
- delete m_pRedlSaveData, m_pRedlSaveData = nullptr;
+ {
+ delete m_pRedlSaveData;
+ m_pRedlSaveData = nullptr;
+ }
}
if( !pHistory )
@@ -964,7 +967,8 @@ void SwUndoDelete::RedoImpl(::sw::UndoRedoContext & rContext)
"SwUndoDelete::Redo: used to have redline data, but now none?");
if (!bSuccess)
{
- delete m_pRedlSaveData, m_pRedlSaveData = nullptr;
+ delete m_pRedlSaveData;
+ m_pRedlSaveData = nullptr;
}
}