Kaydet (Commit) 8453f51f authored tarafından Caolán McNamara's avatar Caolán McNamara

improve scoping and use a ref instead of a pointer

Change-Id: I9b2d7e57495b26c748edfe6bf5d9d04e0c8a388f
Reviewed-on: https://gerrit.libreoffice.org/45239Reviewed-by: 's avatarCaolán McNamara <caolanm@redhat.com>
Tested-by: 's avatarCaolán McNamara <caolanm@redhat.com>
üst 86877f67
......@@ -2311,14 +2311,13 @@ void WW8TabDesc::CalcDefaults()
}
for (int k = 0; k < pR->nWwCols; ++k)
{
WW8_TCell* pT = &pR->pTCs[k];
int i, j;
for( i = 0; i < 4; i ++ )
WW8_TCell& rT = pR->pTCs[k];
for (int i = 0; i < 4; ++i)
{
if (pT->rgbrc[i].brcType()==0)
if (rT.rgbrc[i].brcType()==0)
{
// if shadow is set, its invalid
j = i;
int j = i;
switch( i )
{
case 0:
......@@ -2339,7 +2338,7 @@ void WW8TabDesc::CalcDefaults()
break;
}
// merge with above defaults
pT->rgbrc[i] = pR->aDefBrcs[j];
rT.rgbrc[i] = pR->aDefBrcs[j];
}
}
}
......
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