sw/source/core/undo/undobj.cxx |    1 -
 1 file changed, 1 deletion(-)

New commits:
commit eb01f58edde8513550744576649a5c08f807ef72
Author: Michael Stahl <[email protected]>
Date:   Tue Feb 10 14:26:11 2015 +0100

    coverity#1267666: logically dead code in SwUndo::CanRepeat()
    
    Change-Id: I38ff790419562cf0e4f2b584696867eaf4614166

diff --git a/sw/source/core/undo/undobj.cxx b/sw/source/core/undo/undobj.cxx
index f98c6f6..f20980c 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);
 }
 
_______________________________________________
Libreoffice-commits mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to