Kaydet (Commit) a8788866 authored tarafından Michael Stahl's avatar Michael Stahl

coverity#1267638: logically dead code in SwUndo::RedoWithContext()

Change-Id: Iab669a18ed990a23c77b5bb3d6b0a935a8af2c5d
üst a3a783f9
...@@ -220,7 +220,6 @@ void SwUndo::RedoWithContext(SfxUndoContext & rContext) ...@@ -220,7 +220,6 @@ void SwUndo::RedoWithContext(SfxUndoContext & rContext)
::sw::UndoRedoContext *const pContext( ::sw::UndoRedoContext *const pContext(
dynamic_cast< ::sw::UndoRedoContext * >(& rContext)); dynamic_cast< ::sw::UndoRedoContext * >(& rContext));
assert(pContext); assert(pContext);
if (!pContext) { return; }
const UndoRedoRedlineGuard aUndoRedoRedlineGuard(*pContext, *this); const UndoRedoRedlineGuard aUndoRedoRedlineGuard(*pContext, *this);
RedoImpl(*pContext); RedoImpl(*pContext);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment