summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/doccomp.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index 990d645d7364..d36b16c0b616 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -435,7 +435,7 @@ void CompareData::CheckForChangesInLine( const CompareData& ,
}
Hash::Hash( sal_uLong nSize )
- : nCount( 1 )
+ : nCount(1)
{
static const sal_uLong primes[] =
@@ -471,6 +471,7 @@ static const sal_uLong primes[] =
pDataArr[0].nNext = 0;
pDataArr[0].nHash = 0,
pDataArr[0].pLine = 0;
+ nPrime = primes[0];
for( i = 0; primes[i] < nSize / 3; i++)
if( !primes[i] )