diff options
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/filter/eppt/pptx-grouptable.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/sidebar/MasterPagesSelector.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/view/OutlinerIterator.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/view/drviewsc.cxx | 5 | ||||
-rw-r--r-- | sd/source/ui/view/viewshel.cxx | 3 |
5 files changed, 5 insertions, 12 deletions
diff --git a/sd/source/filter/eppt/pptx-grouptable.cxx b/sd/source/filter/eppt/pptx-grouptable.cxx index 2e092220cb3c..712de6ac694f 100644 --- a/sd/source/filter/eppt/pptx-grouptable.cxx +++ b/sd/source/filter/eppt/pptx-grouptable.cxx @@ -45,8 +45,7 @@ void GroupTable::ImplResizeGroupTable( sal_uInt32 nEntrys ) GroupEntry** pTemp = new GroupEntry*[ nEntrys ]; for ( sal_uInt32 i = 0; i < mnCurrentGroupEntry; i++ ) pTemp[ i ] = mpGroupEntry[ i ]; - if ( mpGroupEntry ) - delete[] mpGroupEntry; + delete[] mpGroupEntry; mpGroupEntry = pTemp; } } diff --git a/sd/source/ui/sidebar/MasterPagesSelector.cxx b/sd/source/ui/sidebar/MasterPagesSelector.cxx index 359b5ad5eda2..edd6d0f19414 100644 --- a/sd/source/ui/sidebar/MasterPagesSelector.cxx +++ b/sd/source/ui/sidebar/MasterPagesSelector.cxx @@ -591,8 +591,7 @@ void MasterPagesSelector::ClearPageSet() for (size_t nIndex=1; nIndex<=PreviewValueSet::GetItemCount(); nIndex++) { UserData* pData = GetUserData(nIndex); - if (pData != nullptr) - delete pData; + delete pData; } PreviewValueSet::Clear(); } diff --git a/sd/source/ui/view/OutlinerIterator.cxx b/sd/source/ui/view/OutlinerIterator.cxx index 0126a1d3a57b..88c66acb4ca4 100644 --- a/sd/source/ui/view/OutlinerIterator.cxx +++ b/sd/source/ui/view/OutlinerIterator.cxx @@ -684,8 +684,7 @@ void ViewIteratorImpl::Reverse() IteratorImplBase::Reverse (); // Create reversed object list iterator. - if (mpObjectIterator != nullptr) - delete mpObjectIterator; + delete mpObjectIterator; if (mpPage != nullptr) mpObjectIterator = new SdrObjListIter(*mpPage, SdrIterMode::DeepNoGroups, ! mbDirectionIsForward); else diff --git a/sd/source/ui/view/drviewsc.cxx b/sd/source/ui/view/drviewsc.cxx index 9f245cc9aa52..5bbf7ff27c49 100644 --- a/sd/source/ui/view/drviewsc.cxx +++ b/sd/source/ui/view/drviewsc.cxx @@ -76,10 +76,7 @@ void DrawViewShell::UpdateIMapDlg( SdrObject* pObj ) SvxIMapDlgChildWindow::UpdateIMapDlg( aGraphic, pIMap, pTargetList, pObj ); // We can delete the target list - if ( pTargetList ) - { - delete pTargetList; - } + delete pTargetList; } } diff --git a/sd/source/ui/view/viewshel.cxx b/sd/source/ui/view/viewshel.cxx index 61dd557f5d07..75e61456b181 100644 --- a/sd/source/ui/view/viewshel.cxx +++ b/sd/source/ui/view/viewshel.cxx @@ -1683,8 +1683,7 @@ SfxShell* ViewShellObjectBarFactory::CreateShell( ::sd::ShellId nId ) void ViewShellObjectBarFactory::ReleaseShell (SfxShell* pShell) { - if (pShell != nullptr) - delete pShell; + delete pShell; } } // end of anonymous namespace |