diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:07:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-09 09:43:14 +0100 |
commit | 3f0116e0e07a9524f7ab6f6f56f71cb53ab45d77 (patch) | |
tree | 78bf6fb1174d68ae93470f6c0982393491c57fe0 /svx/source | |
parent | 8a4a9c8876c8de0bfcf9d5a8fec30d45b63a84db (diff) |
coverity#1209818 Dereference before null check
Change-Id: I0d94e599818df19411de8e58b99bb9f5735f973a
Diffstat (limited to 'svx/source')
-rw-r--r-- | svx/source/svdraw/svdedtv2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/svdraw/svdedtv2.cxx b/svx/source/svdraw/svdedtv2.cxx index d6802ecfd75a..17d20c15d813 100644 --- a/svx/source/svdraw/svdedtv2.cxx +++ b/svx/source/svdraw/svdedtv2.cxx @@ -1418,8 +1418,8 @@ bool SdrEditView::ImpCanDismantle(const SdrObject* pObj, bool bMakeLines) const } else { - const SdrPathObj* pPath = PTR_CAST(SdrPathObj, pObj); - const SdrObjCustomShape* pCustomShape = PTR_CAST(SdrObjCustomShape, pObj); + const SdrPathObj* pPath = dynamic_cast<const SdrPathObj*>(pObj); + const SdrObjCustomShape* pCustomShape = dynamic_cast<const SdrObjCustomShape*>(pObj); // #i37011# if(pPath) |