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

Related: fdo#37057 use standard sprm iterator

üst 405454c8
...@@ -3701,11 +3701,11 @@ void WW8RStyle::ImportSprms(sal_uInt8 *pSprms, short nLen, bool bPap) ...@@ -3701,11 +3701,11 @@ void WW8RStyle::ImportSprms(sal_uInt8 *pSprms, short nLen, bool bPap)
nSprmsLen = nLen; nSprmsLen = nLen;
} }
while ( nLen > 0 ) WW8SprmIter aSprmIter(pSprms, nLen, maSprmParser);
while (const sal_uInt8* pSprm = aSprmIter.GetSprms())
{ {
sal_uInt16 nL1 = pIo->ImportSprm(pSprms); pIo->ImportSprm(pSprm);
nLen = nLen - nL1; aSprmIter.advance();
pSprms += nL1;
} }
pParaSprms = 0; pParaSprms = 0;
......
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