summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-30 03:52:37 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2013-01-30 19:32:02 +0100
commitb0255df4bd988a89d41be060c4972d37eb9e3ec8 (patch)
treeddefa29264593a1afc1a7e31ee531c56b87d8b71 /sc
parentc3669e680f8c557965945fa975ee0283706a15a8 (diff)
prefer the c'tor initializer list
Change-Id: Ic4087959ae04b27c228abf67ef538aa8717fae4f
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/attarray.cxx14
1 files changed, 6 insertions, 8 deletions
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
}
//------------------------------------------------------------------------