summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-09-29 19:38:08 +0200
committerPierre-André Jacquod <pjacquod@alumni.ethz.ch>2011-10-07 15:57:33 +0200
commit3150a3399683d1e3115f7a1a0550a3efb6c94f9e (patch)
tree18d37c1787324c9b86dc3c555e5462bf723ac54d /sw
parent705660087841a37996763bc359d244964b887218 (diff)
cppcheck scope reduction in sw/..docredln.cxx
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docredln.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/doc/docredln.cxx b/sw/source/core/doc/docredln.cxx
index 851174f531e5..c3fc328bfc1d 100644
--- a/sw/source/core/doc/docredln.cxx
+++ b/sw/source/core/doc/docredln.cxx
@@ -2975,12 +2975,11 @@ void SwRedlineExtraData_Format::Reject( SwPaM& rPam ) const
int SwRedlineExtraData_Format::operator == ( const SwRedlineExtraData& rCmp ) const
{
int nRet = 1;
- size_t n = 0;
size_t nEnd = aWhichIds.size();
if( nEnd != ((SwRedlineExtraData_Format&)rCmp).aWhichIds.size() )
nRet = 0;
else
- for( ; n < nEnd; ++n )
+ for( size_t n = 0; n < nEnd; ++n )
if( ((SwRedlineExtraData_Format&)rCmp).aWhichIds[n] != aWhichIds[n])
{
nRet = 0;