[Libreoffice-commits] .: sw/source
Joseph Powers
jpowers at kemper.freedesktop.org
Mon Dec 13 05:50:16 PST 2010
sw/source/core/doc/doccomp.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 26be6bb46df838707c4d4f59aa2879b7aed69c61
Author: Joseph Powers <jpowers27 at cox.net>
Date: Mon Dec 13 05:50:06 2010 -0800
Fix ULONG/size_t issue.
diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index 36dca9a..aaf61ab 100644
--- a/sw/source/core/doc/doccomp.cxx
+++ b/sw/source/core/doc/doccomp.cxx
@@ -104,7 +104,7 @@ public:
// Eindeutigen Index fuer eine Line setzen. Gleiche Lines haben den
// selben Index; auch in den anderen CompareData!
- void SetIndex( ULONG nLine, ULONG nIndex );
+ void SetIndex( size_t nLine, size_t nIndex );
size_t GetIndex( size_t nLine ) const
{ return nLine < aLines.size() ? pIndex[ nLine ] : 0; }
@@ -368,14 +368,14 @@ void Hash::CalcHashValue( CompareData& rData )
{
if( pHashArr )
{
- for( ULONG n = 0; n < rData.GetLineCount(); ++n )
+ for( size_t n = 0; n < rData.GetLineCount(); ++n )
{
const CompareLine* pLine = rData.GetLine( n );
OSL_ENSURE( pLine, "wo ist die Line?" );
ULONG nH = pLine->GetHashValue();
ULONG* pFound = &pHashArr[ nH % nPrime ];
- ULONG i;
+ size_t i;
for( i = *pFound; ; i = pDataArr[i].nNext )
if( !i )
{
More information about the Libreoffice-commits
mailing list