[Libreoffice] [PATCH] sw: doccomp.cxx type mismatch build fix on SetIndex

Octavio Alvarez alvarezp at alvarezp.ods.org
Mon Dec 13 13:14:00 PST 2010


Commit 84a19491 broke sw build by forgetting to change ULONG to size_t on
::SetIndex, as it appears from the rest of the diff.
---
 sw/source/core/doc/doccomp.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sw/source/core/doc/doccomp.cxx b/sw/source/core/doc/doccomp.cxx
index 36dca9a..9178433 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; }
 
-- 
1.7.2.3



More information about the LibreOffice mailing list