summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-02-10 13:28:04 +0100
committerMichael Stahl <mstahl@redhat.com>2015-02-10 14:06:58 +0100
commit835db319f7cd1ea135350df0a28a7fb72d0027fd (patch)
tree19731ff8e7d6adce44b73e7040ae886a569188a0 /sw
parenta8788866a3a7735918a1c184677632e1ffa0befd (diff)
coverity#1267639: logically dead code in SwUndo::UndoWithContext()
Change-Id: I5e41337705bb2952a98e7e5778a217cfb2caccdb
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 0072ced29218..f98c6f651797 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -210,7 +210,6 @@ void SwUndo::UndoWithContext(SfxUndoContext & rContext)
::sw::UndoRedoContext *const pContext(
dynamic_cast< ::sw::UndoRedoContext * >(& rContext));
assert(pContext);
- if (!pContext) { return; }
const UndoRedoRedlineGuard aUndoRedoRedlineGuard(*pContext, *this);
UndoImpl(*pContext);
}