summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2015-02-10 14:26:11 +0100
committerMichael Stahl <mstahl@redhat.com>2015-02-10 14:26:11 +0100
commiteb01f58edde8513550744576649a5c08f807ef72 (patch)
treea93d2c6115ce043f861efade1a3189718df52bba /sw
parent835db319f7cd1ea135350df0a28a7fb72d0027fd (diff)
coverity#1267666: logically dead code in SwUndo::CanRepeat()
Change-Id: I38ff790419562cf0e4f2b584696867eaf4614166
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 f98c6f651797..f20980cf5882 100644
--- a/sw/source/core/undo/undobj.cxx
+++ b/sw/source/core/undo/undobj.cxx
@@ -236,7 +236,6 @@ bool SwUndo::CanRepeat(SfxRepeatTarget & rContext) const
::sw::RepeatContext *const pRepeatContext(
dynamic_cast< ::sw::RepeatContext * >(& rContext));
assert(pRepeatContext);
- if (!pRepeatContext) { return false; }
return CanRepeatImpl(*pRepeatContext);
}