summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-24 12:56:43 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-24 17:12:36 +0200
commit2f05a65a4eafcbda3438e50bd0b6518248c04d5d (patch)
treeb627262cb5332005d88b59c95da0243f7a56e49b
parentcfa942249162d5503b8a34d5813fddfb1182283a (diff)
cid#1509207 Dereference after null check
remove useless null checks left behind after commit bb674aa5503ff40a5619d1fb4c9f310da5f5c983 Date: Thu Nov 17 13:16:30 2016 +0200 loplugin:unusedfields showed they weren't consumed anyway Change-Id: Ia32ee9458e01a995692ab961e52512872b1c415c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138767 Tested-by: Caolán McNamara <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--sd/source/ui/unoidl/unocpres.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/unoidl/unocpres.cxx b/sd/source/ui/unoidl/unocpres.cxx
index cc57b1e7941a..1f9bde3b98da 100644
--- a/sd/source/ui/unoidl/unocpres.cxx
+++ b/sd/source/ui/unoidl/unocpres.cxx
@@ -98,10 +98,10 @@ void SAL_CALL SdXCustomPresentation::insertByIndex( sal_Int32 Index, const uno::
if(pPage)
{
- if( nullptr == mpModel )
+ if (!mpModel)
mpModel = pPage->GetModel();
- if( nullptr != mpModel && nullptr == mpSdCustomShow && mpModel->GetDoc() )
+ if (!mpSdCustomShow)
mpSdCustomShow = new SdCustomShow;
mpSdCustomShow->PagesVector().insert(mpSdCustomShow->PagesVector().begin() + Index,