diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 12:50:53 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-01-27 14:38:37 +0000 |
commit | fdc28850c6c30be6e6ef956f9ca8760bcc6bffc4 (patch) | |
tree | e3f2c060edc9ab75dc280cbad72f1ee115e7b7bd /basctl | |
parent | coverity#1130421 Improper use of negative value (diff) | |
download | core-fdc28850c6c30be6e6ef956f9ca8760bcc6bffc4.tar.gz core-fdc28850c6c30be6e6ef956f9ca8760bcc6bffc4.zip |
coverity#735667 Unchecked dynamic_cast
Change-Id: I747b6bcfb1e57fd3f21250b274f2f179e1982d7c
Diffstat (limited to 'basctl')
-rw-r--r-- | basctl/source/basicide/sbxitem.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/basctl/source/basicide/sbxitem.cxx b/basctl/source/basicide/sbxitem.cxx index 7a1f2e935874..f2a190970b25 100644 --- a/basctl/source/basicide/sbxitem.cxx +++ b/basctl/source/basicide/sbxitem.cxx @@ -60,9 +60,10 @@ SfxPoolItem *SbxItem::Clone(SfxItemPool*) const bool SbxItem::operator==(const SfxPoolItem& rCmp) const { SbxItem const* pSbxItem = dynamic_cast<SbxItem const*>(&rCmp); - DBG_ASSERT(pSbxItem, "==: no SbxItem!" ); + assert(pSbxItem); //no SbxItem! return SfxPoolItem::operator==(rCmp) && + pSbxItem && m_aDocument == pSbxItem->m_aDocument && m_aLibName == pSbxItem->m_aLibName && m_aName == pSbxItem->m_aName && |