diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 10:33:48 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-10 11:21:09 +0000 |
commit | a90746cb651fed676b2189154a6b6724cb987526 (patch) | |
tree | 8cdf9add095e33026324f6bf35da7baf11f3b17e /sfx2 | |
parent | coverity#1130377 Unchecked dynamic_cast (diff) | |
download | core-a90746cb651fed676b2189154a6b6724cb987526.tar.gz core-a90746cb651fed676b2189154a6b6724cb987526.zip |
coverity#1130368 Unchecked dynamic_cast
Change-Id: Ib4ae0ce1647e15bf1b9d7fe8e2d3bcfcb8ec1466
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/recentdocsview.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sfx2/source/control/recentdocsview.cxx b/sfx2/source/control/recentdocsview.cxx index 34ae603bc238..0592358a1a8c 100644 --- a/sfx2/source/control/recentdocsview.cxx +++ b/sfx2/source/control/recentdocsview.cxx @@ -236,11 +236,13 @@ void RecentDocsView::OnItemDblClicked(ThumbnailViewItem *pItem) void RecentDocsView::OpenItem( const ThumbnailViewItem *pItem ) { + const RecentDocsViewItem* pRecentItem = dynamic_cast<const RecentDocsViewItem*>(pItem); + if (!pRecentItem) + return; + // show busy mouse pointer SetPointer(Pointer(POINTER_WAIT)); - const RecentDocsViewItem* pRecentItem = dynamic_cast<const RecentDocsViewItem*>(pItem); - Reference< XDispatch > xDispatch; Reference< XDispatchProvider > xDispatchProvider; css::util::URL aTargetURL; |