coverity#1373358 Unchecked dynamic_cast

Change-Id: I96526a735c0adb4c20c463f73c34701a9fafb76b
This commit is contained in:
Caolán McNamara
2016-09-24 12:17:59 +01:00
parent dd691312a3
commit 88c7f08c49

View File

@@ -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.