diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-30 12:30:47 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-30 14:19:06 +0100 |
commit | 87b991cac047bbbb41f37465e1a509077f4d2f5b (patch) | |
tree | f0abc69af4cc64f27b5867332d753f670975a0f5 /sw | |
parent | ddff02a6cb58cba8a98b6edf234ad413b1a4eaa7 (diff) |
coverity#705031 Unchecked dynamic_cast
Change-Id: I492db48ee0b3098dddad638736f3d2e062dc6ceb
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/uiview/viewling.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uiview/viewling.cxx b/sw/source/uibase/uiview/viewling.cxx index 329f7e5282bf..dfdf33112381 100644 --- a/sw/source/uibase/uiview/viewling.cxx +++ b/sw/source/uibase/uiview/viewling.cxx @@ -712,7 +712,7 @@ bool SwView::ExecSpellPopup(const Point& rPt) OUString aCommand = ((PopupMenu*)pMenu)->GetItemCommand(nId); if (aCommand.isEmpty() ) { - if(!ExecuteMenuCommand( *dynamic_cast<PopupMenu*>(pMenu), *GetViewFrame(), nId )) + if(!ExecuteMenuCommand(dynamic_cast<PopupMenu&>(*pMenu), *GetViewFrame(), nId )) pPopup->Execute(nId); } else |