From b0255df4bd988a89d41be060c4972d37eb9e3ec8 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 30 Jan 2013 03:52:37 +0100 Subject: prefer the c'tor initializer list Change-Id: Ic4087959ae04b27c228abf67ef538aa8717fae4f --- sc/source/core/data/attarray.cxx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'sc') diff --git a/sc/source/core/data/attarray.cxx b/sc/source/core/data/attarray.cxx index f11eefa2e82b..7d5dc7ba7586 100644 --- a/sc/source/core/data/attarray.cxx +++ b/sc/source/core/data/attarray.cxx @@ -51,15 +51,13 @@ using ::editeng::SvxBorderLine; ScAttrArray::ScAttrArray( SCCOL nNewCol, SCTAB nNewTab, ScDocument* pDoc ) : nCol( nNewCol ), nTab( nNewTab ), - pDocument( pDoc ) + pDocument( pDoc ), + nCount(1), + nLimit(1), + pData(new ScAttrEntry[1]) { - nCount = nLimit = 1; - pData = new ScAttrEntry[1]; - if (pData) - { - pData[0].nRow = MAXROW; - pData[0].pPattern = pDocument->GetDefPattern(); // no put - } + pData[0].nRow = MAXROW; + pData[0].pPattern = pDocument->GetDefPattern(); // no put } //------------------------------------------------------------------------ -- cgit