[Libreoffice-commits] core.git: sc/source
Markus Mohrhard
markus.mohrhard at googlemail.com
Sat Mar 12 13:04:50 UTC 2016
sc/source/core/data/stlpool.cxx | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
New commits:
commit 07125507097c7b9f277fe79a6d21c76246fd5bd2
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date: Fri Mar 11 09:11:02 2016 +0100
no need for fancy delete macros for local variables
Change-Id: Ib81562dda616ab6c9e2ad69c076818a9a2c42085
Reviewed-on: https://gerrit.libreoffice.org/23167
Tested-by: Jenkins <ci at libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
diff --git a/sc/source/core/data/stlpool.cxx b/sc/source/core/data/stlpool.cxx
index 68638e9..3493a9c2 100644
--- a/sc/source/core/data/stlpool.cxx
+++ b/sc/source/core/data/stlpool.cxx
@@ -331,7 +331,7 @@ void ScStyleSheetPool::CreateStandardStyles()
pHFSetItem = new SvxSetItem( static_cast<const SvxSetItem&>(pSet->Get( ATTR_PAGE_HEADERSET ) ) );
pSet->Put( *pHFSetItem, ATTR_PAGE_HEADERSET );
pSet->Put( *pHFSetItem, ATTR_PAGE_FOOTERSET );
- DELETEZ( pHFSetItem );
+ delete pHFSetItem;
// Header:
// [empty][\sheet\][empty]
@@ -343,7 +343,7 @@ void ScStyleSheetPool::CreateStandardStyles()
pHeaderItem->SetCenterArea( *pTxtObj );
pHeaderItem->SetRightArea ( *pEmptyTxtObj );
pSet->Put( *pHeaderItem );
- DELETEZ( pTxtObj );
+ delete pTxtObj;
// Footer:
// [empty][Page \STR_PAGE\][empty]
@@ -357,7 +357,7 @@ void ScStyleSheetPool::CreateStandardStyles()
pFooterItem->SetCenterArea( *pTxtObj );
pFooterItem->SetRightArea ( *pEmptyTxtObj );
pSet->Put( *pFooterItem );
- DELETEZ( pTxtObj );
+ delete pTxtObj;
// 2. Report
@@ -389,7 +389,7 @@ void ScStyleSheetPool::CreateStandardStyles()
pHFSet->Put( aBoxInfoItem );
pSet->Put( *pHFSetItem, ATTR_PAGE_HEADERSET );
pSet->Put( *pHFSetItem, ATTR_PAGE_FOOTERSET );
- DELETEZ( pHFSetItem );
+ delete pHFSetItem;
// Footer:
// [\TABLE\ (\DATA\)][empty][\DATE\, \TIME\]
@@ -401,7 +401,7 @@ void ScStyleSheetPool::CreateStandardStyles()
pTxtObj = pEdEngine->CreateTextObject();
pHeaderItem->SetLeftArea( *pTxtObj );
pHeaderItem->SetCenterArea( *pEmptyTxtObj );
- DELETEZ( pTxtObj );
+ delete pTxtObj;
aStr = ", ";
pEdEngine->SetText( aStr );
pEdEngine->QuickInsertField( SvxFieldItem(SvxTimeField(), EE_FEATURE_FIELD), ESelection(0,2,0,2) );
@@ -409,7 +409,7 @@ void ScStyleSheetPool::CreateStandardStyles()
ESelection() );
pTxtObj = pEdEngine->CreateTextObject();
pHeaderItem->SetRightArea( *pTxtObj );
- DELETEZ( pTxtObj );
+ delete pTxtObj;
pSet->Put( *pHeaderItem );
// Footer:
@@ -427,12 +427,12 @@ void ScStyleSheetPool::CreateStandardStyles()
pFooterItem->SetCenterArea( *pTxtObj );
pFooterItem->SetRightArea ( *pEmptyTxtObj );
pSet->Put( *pFooterItem );
- DELETEZ( pTxtObj );
+ delete pTxtObj;
- DELETEZ( pEmptyTxtObj );
- DELETEZ( pHeaderItem );
- DELETEZ( pFooterItem );
- DELETEZ( pEdEngine );
+ delete pEmptyTxtObj;
+ delete pHeaderItem;
+ delete pFooterItem;
+ delete pEdEngine;
}
namespace {
More information about the Libreoffice-commits
mailing list