[Libreoffice-commits] .: svtools/source
Caolán McNamara
caolan at kemper.freedesktop.org
Sat Nov 27 13:29:20 PST 2010
svtools/source/graphic/grfmgr2.cxx | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
New commits:
commit 3ba165f9804ba9c68d3d2e686178148814b9b462
Author: Caolán McNamara <caolanm at redhat.com>
Date: Sat Nov 27 21:29:13 2010 +0000
bogus cppcheck warning, simplify it anyway
diff --git a/svtools/source/graphic/grfmgr2.cxx b/svtools/source/graphic/grfmgr2.cxx
index 70b81c8..7a2dbfa 100644
--- a/svtools/source/graphic/grfmgr2.cxx
+++ b/svtools/source/graphic/grfmgr2.cxx
@@ -1353,14 +1353,16 @@ BOOL GraphicManager::ImplCreateRotatedScaled( const BitmapEx& rBmpEx,
// create horizontal mapping table
for( nX = 0L, nTmpX = aNewBound.Left() + nStartX; nX < nDstW; nX++ )
{
- pCosX[ nX ] = FRound( fCosAngle * ( fTmp = nTmpX++ << 8 ) );
+ fTmp = nTmpX++ << 8;
+ pCosX[ nX ] = FRound( fCosAngle * fTmp );
pSinX[ nX ] = FRound( fSinAngle * fTmp );
}
// create vertical mapping table
for( nY = 0L, nTmpY = aNewBound.Top() + nStartY; nY < nDstH; nY++ )
{
- pCosY[ nY ] = FRound( fCosAngle * ( fTmp = nTmpY++ << 8 ) );
+ fTmp = nTmpY++ << 8;
+ pCosY[ nY ] = FRound( fCosAngle * fTmp );
pSinY[ nY ] = FRound( fSinAngle * fTmp );
}
More information about the Libreoffice-commits
mailing list