summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Nitschke <j.nitschke+logerrit@ok.de>2016-04-18 09:57:03 +0000
committerMichael Stahl <mstahl@redhat.com>2016-04-18 14:55:21 +0000
commit80df81c560364a246fc26ef87d22279c18bc778d (patch)
tree15bcfea3eb9dfc14bd817cf4c6762a73793ffd89
parentca440cf5486099778107c2e263bf7fa9a1a0fdd5 (diff)
cppcheck: silence known condition warning in sw undobj
Change-Id: Iedbb6bbdcdccf4ea44a7ad4d2e11ce630431034f Reviewed-on: https://gerrit.libreoffice.org/24210 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Stahl <mstahl@redhat.com>
-rw-r--r--sw/source/core/undo/undobj1.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/undo/undobj1.cxx b/sw/source/core/undo/undobj1.cxx
index 7696d1a7971b..b45a5b309082 100644
--- a/sw/source/core/undo/undobj1.cxx
+++ b/sw/source/core/undo/undobj1.cxx
@@ -171,7 +171,7 @@ void SwUndoFlyBase::DelFly( SwDoc* pDoc )
const_cast<SwFormatContent&>(rContent).SetNewContentIdx( nullptr );
}
// OD 02.07.2003 #108784# - remove 'master' drawing object from drawing page
- else if ( RES_DRAWFRMFMT == pFrameFormat->Which() )
+ else
{
SwDrawContact* pDrawContact =
static_cast<SwDrawContact*>(pFrameFormat->FindContactObj());