diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-24 15:19:59 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-24 15:19:59 +0000 |
commit | 533f390e609da2f4b0e644a543746a767f1bba62 (patch) | |
tree | 7750511f16c763240a7f36e61502c2442860f8d9 /include/svx/imapdlg.hxx | |
parent | 8e375ba24da264cc4d711b535c547a2546435475 (diff) |
coverity#1265796 Dereference null return value
Change-Id: I779dacdb7fb18ba8148e932b4dc684d08f824cbe
Diffstat (limited to 'include/svx/imapdlg.hxx')
-rw-r--r-- | include/svx/imapdlg.hxx | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/include/svx/imapdlg.hxx b/include/svx/imapdlg.hxx index d4bbb7a1b9e5..7c288fed577a 100644 --- a/include/svx/imapdlg.hxx +++ b/include/svx/imapdlg.hxx @@ -155,13 +155,7 @@ public: virtual void KeyInput( const KeyEvent& rKEvt ) SAL_OVERRIDE; }; -inline SvxIMapDlg* SVXIMAPDLG() -{ - SfxChildWindow* pWnd = NULL; - if (SfxViewFrame::Current() && SfxViewFrame::Current()->HasChildWindow(SvxIMapDlgChildWindow::GetChildWindowId())) - pWnd = SfxViewFrame::Current()->GetChildWindow(SvxIMapDlgChildWindow::GetChildWindowId()); - return pWnd ? static_cast<SvxIMapDlg*>(pWnd->GetWindow()) : NULL; -} +SVX_DLLPUBLIC SvxIMapDlg* GetIMapDlg(); #endif // INCLUDED_SVX_IMAPDLG_HXX |