Kaydet (Commit) ea05b896 authored tarafından Noel Grandin's avatar Noel Grandin

coverity#708873 unused pointer value

Change-Id: Ib3039e4bbe355a3136730a6dbf9bf516be2c3f62
üst eb731188
...@@ -1802,10 +1802,10 @@ WW8TabDesc::WW8TabDesc(SwWW8ImplReader* pIoClass, WW8_CP nStartCp) : ...@@ -1802,10 +1802,10 @@ WW8TabDesc::WW8TabDesc(SwWW8ImplReader* pIoClass, WW8_CP nStartCp) :
pPap->GetSprms( &aDesc ); pPap->GetSprms( &aDesc );
WW8SprmIter aSprmIter(aDesc.pMemPos, aDesc.nSprmsLen, aSprmParser); WW8SprmIter aSprmIter(aDesc.pMemPos, aDesc.nSprmsLen, aSprmParser);
const sal_uInt8* pParams = aSprmIter.GetAktParams();
for (int nLoop = 0; nLoop < 2; ++nLoop) for (int nLoop = 0; nLoop < 2; ++nLoop)
{ {
bool bRepeatedSprm = false; bool bRepeatedSprm = false;
const sal_uInt8* pParams;
while (aSprmIter.GetSprms() && 0 != (pParams = aSprmIter.GetAktParams())) while (aSprmIter.GetSprms() && 0 != (pParams = aSprmIter.GetAktParams()))
{ {
sal_uInt16 nId = aSprmIter.GetAktId(); sal_uInt16 nId = aSprmIter.GetAktId();
...@@ -1974,7 +1974,7 @@ WW8TabDesc::WW8TabDesc(SwWW8ImplReader* pIoClass, WW8_CP nStartCp) : ...@@ -1974,7 +1974,7 @@ WW8TabDesc::WW8TabDesc(SwWW8ImplReader* pIoClass, WW8_CP nStartCp) :
} }
//Are we still in a table cell //Are we still in a table cell
pParams = HasTabCellSprm(pPap, bOldVer); const sal_uInt8* pParams = HasTabCellSprm(pPap, bOldVer);
const sal_uInt8 *pLevel = pPap->HasSprm(0x6649); const sal_uInt8 *pLevel = pPap->HasSprm(0x6649);
// InTable // InTable
if (!pParams || (1 != *pParams) || if (!pParams || (1 != *pParams) ||
......
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