summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-02-10 13:27:03 +0100
committerMichael Stahl <mstahl@redhat.com>2015-02-10 14:06:58 +0100
commita8788866a3a7735918a1c184677632e1ffa0befd (patch)
treeee1043955a9d41f37c1593ba8e99a1b8a6b61863 /sw
parenta3a783f9ebf1990b05e0ad60c723e6f7c2902d0a (diff)
coverity#1267638: logically dead code in SwUndo::RedoWithContext()
Change-Id: Iab669a18ed990a23c77b5bb3d6b0a935a8af2c5d
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/undo/undobj.cxx1
1 files changed, 0 insertions, 1 deletions
diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index d2724dd9e734..0072ced29218 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -220,7 +220,6 @@ void SwUndo::RedoWithContext(SfxUndoContext & rContext)
::sw::UndoRedoContext *const pContext(
dynamic_cast< ::sw::UndoRedoContext * >(& rContext));
assert(pContext);
- if (!pContext) { return; }
const UndoRedoRedlineGuard aUndoRedoRedlineGuard(*pContext, *this);
RedoImpl(*pContext);
}