diff options
author | Julien Nabet <serval2412@yahoo.fr> | 2011-08-13 15:12:01 +0200 |
---|---|---|
committer | Julien Nabet <serval2412@yahoo.fr> | 2011-08-13 15:12:35 +0200 |
commit | 66fd1442696059cc6de07ec96af77082654a0990 (patch) | |
tree | 5368bc4dc5c39ff03dd9222bafd57442df0ff63e /sw | |
parent | fee11cbc619576ae69b03e62622a38bef8799502 (diff) |
Some cppcheck cleaning
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/docnode/ndcopy.cxx | 3 | ||||
-rw-r--r-- | sw/source/filter/ww8/ww8scan.cxx | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/sw/source/core/docnode/ndcopy.cxx b/sw/source/core/docnode/ndcopy.cxx index a4ee1447052e..97709cd98e8f 100644 --- a/sw/source/core/docnode/ndcopy.cxx +++ b/sw/source/core/docnode/ndcopy.cxx @@ -206,10 +206,9 @@ namespace ::sw::mark::IFieldmark::parameter_map_t* pNewParams = pNewFieldmark->GetParameters(); const ::sw::mark::IFieldmark::parameter_map_t* pOldParams = pOldFieldmark->GetParameters(); ::sw::mark::IFieldmark::parameter_map_t::const_iterator pIt = pOldParams->begin(); - while ( pIt != pOldParams->end() ) + for (; pIt != pOldParams->end(); ++pIt ) { pNewParams->insert( *pIt ); - pIt++; } } diff --git a/sw/source/filter/ww8/ww8scan.cxx b/sw/source/filter/ww8/ww8scan.cxx index ac92dd268a09..964929bab740 100644 --- a/sw/source/filter/ww8/ww8scan.cxx +++ b/sw/source/filter/ww8/ww8scan.cxx @@ -6617,7 +6617,7 @@ bool WW8PLCF_HdFt::GetTextPos(sal_uInt8 grpfIhdt, sal_uInt8 nWhich, WW8_CP& rSta aPLCF.SetIdx( nIdx ); // Lookup suitable CP aPLCF.Get( rStart, nEnd, pData ); rLen = nEnd - rStart; - aPLCF++; + ++aPLCF; return true; } |