summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-02 01:55:56 +0100
committerLuboš Luňák <l.lunak@suse.cz>2011-07-26 15:40:33 +0200
commitc28968f2eae35cae76594fc9ef2434667c26fffe (patch)
tree664e5fe85851852929efb1bd741093a986371e9e
parent4477188bd8da6fd3a6fa4b6e2044a5ef81c247e7 (diff)
Related: fdo#37057 use standard sprm iterator
-rw-r--r--sw/source/filter/ww8/ww8par2.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8par2.cxx b/sw/source/filter/ww8/ww8par2.cxx
index c9f92d80bc..c26db3dbdc 100644
--- a/sw/source/filter/ww8/ww8par2.cxx
+++ b/sw/source/filter/ww8/ww8par2.cxx
@@ -3789,11 +3789,11 @@ void WW8RStyle::ImportSprms(BYTE *pSprms, short nLen, bool bPap)
nSprmsLen = nLen;
}
- while ( nLen > 0 )
+ WW8SprmIter aSprmIter(pSprms, nLen, maSprmParser);
+ while (const sal_uInt8* pSprm = aSprmIter.GetSprms())
{
- USHORT nL1 = pIo->ImportSprm(pSprms);
- nLen = nLen - nL1;
- pSprms += nL1;
+ pIo->ImportSprm(pSprm);
+ aSprmIter.advance();
}
pParaSprms = 0;