diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-10-01 17:11:14 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-10-01 20:29:02 +0100 |
commit | 74343722f64fe8be0484ab614eebb34333e26392 (patch) | |
tree | 9af708e481dfb2fae200c71ccfadba0810734297 /sw/source/ui/fmtui | |
parent | 6250f61fc8b87aacaec2c48c7751f15e9222fa2c (diff) |
coverity#1242505 Dereference before null check
Change-Id: I63a5361eb338dba30d76f4a0a1afb88e7de5f401
Diffstat (limited to 'sw/source/ui/fmtui')
-rw-r--r-- | sw/source/ui/fmtui/tmpdlg.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fmtui/tmpdlg.cxx b/sw/source/ui/fmtui/tmpdlg.cxx index c13d8810777d..c6255cd7872a 100644 --- a/sw/source/ui/fmtui/tmpdlg.cxx +++ b/sw/source/ui/fmtui/tmpdlg.cxx @@ -291,7 +291,7 @@ SwTemplateDlg::SwTemplateDlg(vcl::Window* pParent, m_nPageId = AddTabPage("page", pFact->GetTabPageCreatorFunc( RID_SVXPAGE_PAGE ), pFact->GetTabPageRangesFunc( RID_SVXPAGE_PAGE ) ); - if(!pActShell || 0 == ::GetHtmlMode(pWrtShell->GetView().GetDocShell())) + if (0 == ::GetHtmlMode(pWrtShell->GetView().GetDocShell())) { OSL_ENSURE(pFact->GetTabPageCreatorFunc( RID_SVXPAGE_BORDER ), "GetTabPageCreatorFunc fail!"); OSL_ENSURE(pFact->GetTabPageRangesFunc( RID_SVXPAGE_BORDER ), "GetTabPageRangesFunc fail!"); |