coverity#707550, coverity#707549 : Unitialized scalar variable

Change-Id: I36026768fb51ed80a70addfcad9b831d8e7e6d7c
Reviewed-on: https://gerrit.libreoffice.org/4405
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
This commit is contained in:
Norbert Thiebaud
2013-06-20 13:15:53 -05:00
committed by Eike Rathke
parent 4cb05188fe
commit 0139e0b1cd

View File

@@ -1212,7 +1212,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 nAbsAvail, sal_uInt16 nRelAv
sal_uLong nRealMin = 0;
for( sal_uInt16 i=0; i<nCols; i++ )
{
sal_uLong nRealColMin = MINLAY, nDummy1, nDummy2;
sal_uLong nRealColMin = MINLAY, nDummy1 = 0, nDummy2 = 0;
AddBorderWidth( nRealColMin, nDummy1, nDummy2, i, 1 );
nRealMin += nRealColMin;
}
@@ -1261,7 +1261,7 @@ void SwHTMLTableLayout::AutoLayoutPass2( sal_uInt16 nAbsAvail, sal_uInt16 nRelAv
{
pColumn = GetColumn( i );
sal_uLong nColMin = pColumn->GetMin();
sal_uLong nRealColMin = MINLAY, nDummy1, nDummy2;
sal_uLong nRealColMin = MINLAY, nDummy1 = 0, nDummy2 = 0;
AddBorderWidth( nRealColMin, nDummy1, nDummy2, i, 1 );
if( nColMin <= USHRT_MAX )