Kaydet (Commit) cf5851d0 authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704704 Unchecked dynamic_cast

Change-Id: Iea6ee88d61e9f9c8396fe4aa0481a92001d7dcb8
üst 89819732
...@@ -542,8 +542,8 @@ void ScFormulaDlg::setDispatcherLock( bool bLock ) ...@@ -542,8 +542,8 @@ void ScFormulaDlg::setDispatcherLock( bool bLock )
void ScFormulaDlg::setReferenceInput(const formula::FormEditData* _pData) void ScFormulaDlg::setReferenceInput(const formula::FormEditData* _pData)
{ {
ScModule* pScMod = SC_MOD(); ScModule* pScMod = SC_MOD();
ScFormEditData* pData = const_cast<ScFormEditData*>(dynamic_cast<const ScFormEditData*>(_pData)); ScFormEditData& rData = const_cast<ScFormEditData&>(dynamic_cast<const ScFormEditData&>(*_pData));
pScMod->SetRefInputHdl(pData->GetInputHandler()); pScMod->SetRefInputHdl(rData.GetInputHandler());
} }
void ScFormulaDlg::deleteFormData() void ScFormulaDlg::deleteFormData()
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment