aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-05-21 16:12:28 +1000
committernyamatongwe <devnull@localhost>2011-05-21 16:12:28 +1000
commitc360665cfde8b83dbfb4d11a09881f53d5233da2 (patch)
tree396f21f9026f3bb6f35c457750a8c22732dc5fc5
parent266da35b8a6f77ecac222adac04a51844721e3d7 (diff)
downloadscintilla-mirror-c360665cfde8b83dbfb4d11a09881f53d5233da2.tar.gz
Type safety.
-rw-r--r--src/PositionCache.h4
1 files changed, 2 insertions, 2 deletions
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);
};