coverity#1373358 Unchecked dynamic_cast
Change-Id: I96526a735c0adb4c20c463f73c34701a9fafb76b
This commit is contained in:
parent
dd691312a3
commit
88c7f08c49
@ -1175,9 +1175,8 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint )
|
||||
return;
|
||||
|
||||
// we know only SfxEventHint or simple SfxHint
|
||||
if ( dynamic_cast<const SfxEventHint*>(&rHint) )
|
||||
if (const SfxEventHint* pEventHint = dynamic_cast<const SfxEventHint*>(&rHint))
|
||||
{
|
||||
const SfxEventHint* pEventHint = dynamic_cast<const SfxEventHint*>(&rHint);
|
||||
// When the Document is loaded asynchronously, was the Dispatcher
|
||||
// set as ReadOnly, to what must be returned when the document itself
|
||||
// is not read only, and the loading is finished.
|
||||
|
Loading…
x
Reference in New Issue
Block a user