diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-12 06:45:19 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-05-12 07:03:50 +0200 |
commit | 7db060e12f61a33a344006cf8dfcb4a2527495f0 (patch) | |
tree | 001b63aecf98705d9b0e5870f6835b16363bcdbf /sc/source/core/data/table2.cxx | |
parent | 5ff6482b51105aa9645dbf2990cba2c1dfdd63ac (diff) |
reduce scope of this variable
Change-Id: I I98b7d83aee9f74574a4884f6066e769930e1803a
Diffstat (limited to 'sc/source/core/data/table2.cxx')
-rw-r--r-- | sc/source/core/data/table2.cxx | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index c6fed2b5c436..d13fa9fcd650 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -650,14 +650,13 @@ void ScTable::CopyFromClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, SCsCOL nDx, SCsROW nDy, sal_uInt16 nInsFlag, bool bAsLink, bool bSkipAttrForEmpty, ScTable* pTable) { - SCCOL i; if (nCol2 > MAXCOL) nCol2 = MAXCOL; if (nRow2 > MAXROW) nRow2 = MAXROW; if (ValidColRow(nCol1, nRow1) && ValidColRow(nCol2, nRow2)) { IncRecalcLevel(); - for ( i = nCol1; i <= nCol2; i++) + for ( SCCOL i = nCol1; i <= nCol2; i++) aCol[i].CopyFromClip(nRow1, nRow2, nDy, nInsFlag, bAsLink, bSkipAttrForEmpty, pTable->aCol[i - nDx]); //remove old notes @@ -675,7 +674,7 @@ void ScTable::CopyFromClip(SCCOL nCol1, SCROW nRow1, SCCOL nCol2, SCROW nRow2, if ((nInsFlag & IDF_ATTRIB) != 0) { if (nRow1==0 && nRow2==MAXROW && pColWidth && pTable->pColWidth) - for (i=nCol1; i<=nCol2; i++) + for (SCCOL i=nCol1; i<=nCol2; i++) pColWidth[i] = pTable->pColWidth[i-nDx]; if (nCol1==0 && nCol2==MAXCOL && mpRowHeights && pTable->mpRowHeights && |