warning C4365: '=' : conversion from 'int' to 'sal_uInt16', signed/unsigned mismatch

nhAbsLeftSpace and nInhAbsRightSpace are sal_uInt16, no need to cast them...

Change-Id: I9cb4b683d0096f6cd0968f4ed510983dc105038c
This commit is contained in:
Thomas Arnhold 2014-08-11 21:51:45 +02:00
parent 9f164e942d
commit ce2e9796f1

View file

@ -405,9 +405,9 @@ inline sal_uInt16 SwHTMLTableLayout::GetInhCellSpace( sal_uInt16 nCol,
{
sal_uInt16 nSpace = 0;
if( nCol==0 )
nSpace = nSpace + sal::static_int_cast< sal_uInt16 >(nInhAbsLeftSpace);
nSpace = nSpace + nInhAbsLeftSpace;
if( nCol+nColSpan==nCols )
nSpace = nSpace + sal::static_int_cast< sal_uInt16 >(nInhAbsRightSpace);
nSpace = nSpace + nInhAbsRightSpace;
return nSpace;
}