From 88c7f08c49642ed14e62e96f63cae00ef608cbbb Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Sat, 24 Sep 2016 12:17:59 +0100 Subject: coverity#1373358 Unchecked dynamic_cast Change-Id: I96526a735c0adb4c20c463f73c34701a9fafb76b --- sfx2/source/view/viewfrm.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sfx2') diff --git a/sfx2/source/view/viewfrm.cxx b/sfx2/source/view/viewfrm.cxx index 197b842a5d22..b9e6280fcd25 100644 --- a/sfx2/source/view/viewfrm.cxx +++ b/sfx2/source/view/viewfrm.cxx @@ -1175,9 +1175,8 @@ void SfxViewFrame::Notify( SfxBroadcaster& /*rBC*/, const SfxHint& rHint ) return; // we know only SfxEventHint or simple SfxHint - if ( dynamic_cast(&rHint) ) + if (const SfxEventHint* pEventHint = dynamic_cast(&rHint)) { - const SfxEventHint* pEventHint = dynamic_cast(&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. -- cgit