diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-08-28 15:50:12 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-08-28 15:50:12 +0200 |
commit | 27eb09662da8ca9bf44d424dec15d86a92b08b84 (patch) | |
tree | 1c32a82830bba68dccce1ae7a143d20e68bb1f6b /svx | |
parent | Avoid incomplete type in fn sig to keep ubsan's RTTI-based checks happy (diff) | |
download | core-27eb09662da8ca9bf44d424dec15d86a92b08b84.tar.gz core-27eb09662da8ca9bf44d424dec15d86a92b08b84.zip |
Avoid unnecessary, potentially invalid downcasts from SdrObject to SdrObjGroup
Change-Id: If00b4a11ce5e568b9e4ff00038dc9e1f068cfd79
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/svdraw/svdobj.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/svdraw/svdobj.cxx b/svx/source/svdraw/svdobj.cxx index acbd4285ab27..ab285d42ddf5 100644 --- a/svx/source/svdraw/svdobj.cxx +++ b/svx/source/svdraw/svdobj.cxx @@ -2881,10 +2881,10 @@ void SdrObject::SetUserCall(SdrObjUserCall* pUser) void SdrObject::SendUserCall(SdrUserCallType eUserCall, const Rectangle& rBoundRect) const { - SdrObjGroup* pGroup = NULL; + SdrObject* pGroup = NULL; if( pObjList && pObjList->GetListKind() == SDROBJLIST_GROUPOBJ ) - pGroup = (SdrObjGroup*) pObjList->GetOwnerObj(); + pGroup = pObjList->GetOwnerObj(); if ( pUserCall ) { @@ -2936,8 +2936,8 @@ void SdrObject::SendUserCall(SdrUserCallType eUserCall, const Rectangle& rBoundR if( pGroup->GetObjList() && pGroup->GetObjList()->GetListKind() == SDROBJLIST_GROUPOBJ && - pGroup != (SdrObjGroup*) pObjList->GetOwnerObj() ) - pGroup = (SdrObjGroup*) pObjList->GetOwnerObj(); + pGroup != pObjList->GetOwnerObj() ) + pGroup = pObjList->GetOwnerObj(); else pGroup = NULL; } |