diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 14:33:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-07-18 15:36:18 +0100 |
commit | ccf492d844d580122464a482383c79d678185591 (patch) | |
tree | 4b5f7b275300b20881edf5c54d50d212716f032f | |
parent | bbe02602fa9d64d57da65be6c4d404e327dcc5dc (diff) |
coverity#735895 Unchecked dynamic_cast
Change-Id: I5aaacda8d91d9cbe7671e8fc56990ae203ecbfbb
-rw-r--r-- | sw/source/core/doc/docbm.cxx | 2 |
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()) |