diff options
author | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-03-08 00:24:42 +0100 |
---|---|---|
committer | Matteo Casalin <matteo.casalin@yahoo.com> | 2015-04-05 11:25:13 +0200 |
commit | ac0aeeaa31402a5c934bab58104498bbb6057fca (patch) | |
tree | 18af9ac22f70c50c26e107db1f3eea22704e45c9 /sw | |
parent | 048bf35e825f87fb0422664bc51fb5febc8f80ab (diff) |
Use +=
Change-Id: I280a5ee0d63cabba7482164132b092f4087814bd
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/doc/tblcpy.cxx | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sw/source/core/doc/tblcpy.cxx b/sw/source/core/doc/tblcpy.cxx index 2c751f3f70be..4650a837ff38 100644 --- a/sw/source/core/doc/tblcpy.cxx +++ b/sw/source/core/doc/tblcpy.cxx @@ -237,7 +237,7 @@ namespace mnStartCol = 0; while( nIdx && pC != pEnd ) { - mnStartCol = mnStartCol + pC->mnColSpan; + mnStartCol += pC->mnColSpan; --nIdx; ++pC; } @@ -426,8 +426,7 @@ namespace if( nCurrStartCol < USHRT_MAX ) { if( pFirstBox->mnColSpan > nFirstStartCol ) - nCurrStartCol = pFirstBox->mnColSpan - nFirstStartCol - + nCurrStartCol; + nCurrStartCol += pFirstBox->mnColSpan - nFirstStartCol; } ++pFirstBox; } @@ -441,7 +440,7 @@ namespace for( BoxStructure::size_type nBox = 0; nBox < nBoxCount; ++nBox ) { BoxSpanInfo& rInfo = rBox[nBox]; - nCol = nCol + rInfo.mnColSpan; + nCol += rInfo.mnColSpan; if( rInfo.mbSelected || nCol > nCurrStartCol ) { rInfo.mpCopy = pCurrBox->mpBox; |