From c360665cfde8b83dbfb4d11a09881f53d5233da2 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 21 May 2011 16:12:28 +1000 Subject: Type safety. --- src/PositionCache.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/PositionCache.h b/src/PositionCache.h index 8bd4f1b43..6abec6e7e 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -136,7 +136,7 @@ public: enum { lengthStartSubdivision = 300 }; // Try to make each subdivided run lengthEachSubdivision or shorter. enum { lengthEachSubdivision = 100 }; - BreakFinder(LineLayout *ll_, int lineStart_, int lineEnd_, int posLineStart_, + BreakFinder(LineLayout *ll_, int lineStart_, int lineEnd_, int posLineStart_, int xStart, bool breakForSelection, Document *pdoc_); ~BreakFinder(); int First() const; @@ -153,7 +153,7 @@ public: ~PositionCache(); void Clear(); void SetSize(size_t size_); - int GetSize() const { return size; } + size_t GetSize() const { return size; } void MeasureWidths(Surface *surface, ViewStyle &vstyle, unsigned int styleNumber, const char *s, unsigned int len, int *positions, Document *pdoc); }; -- cgit v1.2.3