diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-07-11 19:45:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-07-11 22:28:52 +0200 |
commit | 9c8d3f32ad5ef3f08b56107a1b860950e78ee77f (patch) | |
tree | dba91124238fa600c053141a2de5c8a9b9a23108 /sc/source/ui/uitest/uiobject.cxx | |
parent | acaa81b62659f5a69a58bd59dfa1b3422da9ee56 (diff) |
cid#1465255 Unchecked dynamic_cast
Change-Id: I564bcde3ee6a96307ae133e550888f41b610e904
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/98575
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc/source/ui/uitest/uiobject.cxx')
-rw-r--r-- | sc/source/ui/uitest/uiobject.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/ui/uitest/uiobject.cxx b/sc/source/ui/uitest/uiobject.cxx index ec1b777ebfc5..a00673b424ed 100644 --- a/sc/source/ui/uitest/uiobject.cxx +++ b/sc/source/ui/uitest/uiobject.cxx @@ -259,7 +259,8 @@ void ScGridWinUIObject::execute(const OUString& rAction, } else if ( rParameters.find("CLOSE") != rParameters.end() ) { - FuDraw* pDraw = dynamic_cast<FuDraw*> (getViewFunc()->GetDrawFuncPtr()); + FuDraw* pDraw = dynamic_cast<FuDraw*>(getViewFunc()->GetDrawFuncPtr()); + assert(pDraw); ScViewData* pViewData = mxGridWindow->getViewData(); pViewData->GetDispatcher().Execute( pDraw->GetSlotID() , SfxCallMode::SLOT | SfxCallMode::RECORD ); } |