summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-07-18 14:33:08 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-07-18 15:36:18 +0100
commitccf492d844d580122464a482383c79d678185591 (patch)
tree4b5f7b275300b20881edf5c54d50d212716f032f
parentbbe02602fa9d64d57da65be6c4d404e327dcc5dc (diff)
coverity#735895 Unchecked dynamic_cast
Change-Id: I5aaacda8d91d9cbe7671e8fc56990ae203ecbfbb
-rw-r--r--sw/source/core/doc/docbm.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docbm.cxx b/sw/source/core/doc/docbm.cxx
index 032daa849bdb..835f696f8e98 100644
--- a/sw/source/core/doc/docbm.cxx
+++ b/sw/source/core/doc/docbm.cxx
@@ -418,7 +418,7 @@ namespace sw { namespace mark
" - Mark was not created.");
MarkBase* pMarkBase = dynamic_cast<MarkBase*>(pMark.get());
- if (!pMark)
+ if (!pMarkBase)
return 0;
if(pMark->GetMarkPos() != pMark->GetMarkStart())