summaryrefslogtreecommitdiff
path: root/sw/source/core
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2016-09-27 14:55:02 +0200
committerMichael Stahl <mstahl@redhat.com>2016-09-28 11:03:56 +0200
commit39ac3aed06c65184e4c387234d045aee8f684e04 (patch)
tree3500fc885d691101c2bc1abc9e25127cb400c9cc /sw/source/core
parent6c673a29947924148b9550517b98d8953680a2ca (diff)
sw: assert that IMarks are MarkBase
Change-Id: Id9e61dc624a34012dc7a53e262c76f8d25c4a455
Diffstat (limited to 'sw/source/core')
-rw-r--r--sw/source/core/doc/docbm.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 0ecc7430ab6d..6a1007695a6a 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -581,8 +581,8 @@ namespace sw { namespace mark
++ppMark)
{
::sw::mark::MarkBase* pMark = dynamic_cast< ::sw::mark::MarkBase* >(ppMark->get());
- if (!pMark)
- continue;
+ // correction of non-existent non-MarkBase instances cannot be done
+ assert(pMark);
// is on position ??
bool bChangedPos = false;
if(&pMark->GetMarkPos().nNode.GetNode() == pOldNode)
@@ -627,8 +627,8 @@ namespace sw { namespace mark
// is on position ??
bool bChangedPos = false, bChangedOPos = false;
::sw::mark::MarkBase* const pMark = dynamic_cast< ::sw::mark::MarkBase* >(ppMark->get());
- if (!pMark)
- continue;
+ // correction of non-existent non-MarkBase instances cannot be done
+ assert(pMark);
if(&pMark->GetMarkPos().nNode.GetNode() == pOldNode)
{
SwPosition aNewPosRel(aNewPos);