Kaydet (Commit) 3d47d9d9 authored tarafından Caolán McNamara's avatar Caolán McNamara

cppcheck: unreadVariable

Change-Id: Ia16c1ba6052e8cf86762be095930b7e748f4493d
üst ad621650
......@@ -531,8 +531,8 @@ void SvxBoundArgs::Concat( const tools::PolyPolygon* pPoly )
}
else if( bSubtract ) // Subtract, if necessary separate
{
long nOld;
if( nLeft > ( nOld = (*pOld)[ nLeftPos - 1 ] ) )
const long nOld = (*pOld)[nLeftPos - 1];
if (nLeft > nOld)
{ // Now we split the left part...
if( nLeft - 1 > nOld )
{
......@@ -544,7 +544,7 @@ void SvxBoundArgs::Concat( const tools::PolyPolygon* pPoly )
}
if( nRightPos - nLeftPos > 1 )
pOld->erase( pOld->begin() + nLeftPos, pOld->begin() + nRightPos - 1 );
if( ++nRight >= ( nOld = (*pOld)[ nLeftPos ] ) )
if (++nRight >= (*pOld)[nLeftPos])
pOld->erase( pOld->begin() + nLeftPos - 1, pOld->begin() + nLeftPos + 1 );
else
(*pOld)[ nLeftPos - 1 ] = nRight;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment