diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-18 01:28:44 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2013-02-18 01:58:44 +0100 |
commit | e94d1bb9283aa59134833eae768a47210599eaa7 (patch) | |
tree | e07900eb92d396a2db5b204717902af5fc857d78 /lotuswordpro | |
parent | ae3138859ef193ee0c297c2a97026923abb43cd2 (diff) |
coverity: no need to use a pointer here
Change-Id: I83b986c6f2f8670c2c0f6caa754fd3567c7488a8
Diffstat (limited to 'lotuswordpro')
-rw-r--r-- | lotuswordpro/source/filter/lwplayout.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lotuswordpro/source/filter/lwplayout.cxx b/lotuswordpro/source/filter/lwplayout.cxx index b2333e0651b7..918b74eca097 100644 --- a/lotuswordpro/source/filter/lwplayout.cxx +++ b/lotuswordpro/source/filter/lwplayout.cxx @@ -1603,24 +1603,24 @@ XFColumns* LwpLayout::GetXFColumns() //set xfcolumn for(sal_uInt16 nIndex = 0; nIndex<nCols; nIndex++) { - XFColumn* pColumn = new XFColumn(); + XFColumn aColumn; sal_Int32 nWidth = static_cast<sal_Int32>(GetColWidth(nIndex)); nWidth=8305/nCols; //relative width - pColumn->SetRelWidth(nWidth); + aColumn.SetRelWidth(nWidth); //the left and right margins is 0; double nGap = GetColGap(nIndex)/2; //nGap=0; - pColumn->SetMargins(nGap,nGap); + aColumn.SetMargins(nGap,nGap); if(nIndex==0) { - pColumn->SetMargins(0,nGap); + aColumn.SetMargins(0,nGap); } if(nIndex==(nCols-1)) { - pColumn->SetMargins(nGap,0); + aColumn.SetMargins(nGap,0); } - pColumns->AddColumn(*pColumn); + pColumns->AddColumn(aColumn); } return pColumns; |