diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-12-14 13:22:17 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-12-14 15:48:43 +0100 |
commit | 2dfe7702a08e74a140f2e55f1625ab780f0e8c2a (patch) | |
tree | cdc7fb68f59f3b291fb323987076fee26f20ed27 /sw/source | |
parent | 12e878d3b5e8a59079811c36b7c89e588266dd0e (diff) |
coverity#1441522 FontWorkGalleryDialog mpSdrView member is never null
Change-Id: If17d2984831b0881d39101648206accdadde12aa
Reviewed-on: https://gerrit.libreoffice.org/65163
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/uibase/shells/drawsh.cxx | 2 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewdraw.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/drawsh.cxx b/sw/source/uibase/shells/drawsh.cxx index 073474ffb498..ef437cb942ec 100644 --- a/sw/source/uibase/shells/drawsh.cxx +++ b/sw/source/uibase/shells/drawsh.cxx @@ -341,7 +341,7 @@ void SwDrawShell::Execute(SfxRequest &rReq) case SID_FONTWORK_CHARACTER_SPACING_FLOATER: case SID_FONTWORK_ALIGNMENT_FLOATER: case SID_FONTWORK_CHARACTER_SPACING_DIALOG: - svx::FontworkBar::execute( pSdrView, rReq, rBnd ); + svx::FontworkBar::execute(*pSdrView, rReq, rBnd); rReq.Ignore (); break; diff --git a/sw/source/uibase/uiview/viewdraw.cxx b/sw/source/uibase/uiview/viewdraw.cxx index 8420e9f3a9f5..ca7884c5cf2b 100644 --- a/sw/source/uibase/uiview/viewdraw.cxx +++ b/sw/source/uibase/uiview/viewdraw.cxx @@ -152,10 +152,10 @@ void SwView::ExecDraw(SfxRequest& rReq) m_pWrtShell->MakeDrawView(); pSdrView = m_pWrtShell->GetDrawView(); - if ( pSdrView ) + if (pSdrView) { SdrObject* pObj = nullptr; - svx::FontWorkGalleryDialog aDlg(rWin.GetFrameWeld(), pSdrView); + svx::FontWorkGalleryDialog aDlg(rWin.GetFrameWeld(), *pSdrView); aDlg.SetSdrObjectRef( &pObj, pSdrView->GetModel() ); aDlg.run(); if ( pObj ) |