coverity#1158081 Unchecked dynamic_cast

Change-Id: Ia67656ac35d50c1f70045ff8e9084bcc54b0d9a8
This commit is contained in:
Miklos Vajna
2014-05-24 22:00:05 +02:00
parent 8617afc0a8
commit 17fa344d03

View File

@@ -573,6 +573,8 @@ namespace sw { namespace mark
++ppMark)
{
::sw::mark::MarkBase* pMark = dynamic_cast< ::sw::mark::MarkBase* >(ppMark->get());
if (!pMark)
continue;
// is on position ??
bool bChangedPos = false;
if(&pMark->GetMarkPos().nNode.GetNode() == pOldNode)