diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-09-24 12:17:59 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-09-24 12:17:59 +0100 |
commit | 88c7f08c49642ed14e62e96f63cae00ef608cbbb (patch) | |
tree | 165aa1473e620cbf6ce091ef7c5c66bc337d8ade /sfx2 | |
parent | dd691312a3a0e0e18ade5c64a3c4f5115c3fde0f (diff) |
coverity#1373358 Unchecked dynamic_cast
Change-Id: I96526a735c0adb4c20c463f73c34701a9fafb76b
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/view/viewfrm.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
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<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. |