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