diff options
author | Neil <nyamatongwe@gmail.com> | 2018-05-03 07:48:10 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-05-03 07:48:10 +1000 |
commit | f642f3da2bb8676fd67a35319e58fdd69a8ca3d8 (patch) | |
tree | 7973a2a89721008933490c3dbbebe5a29fc0559f /src/PositionCache.h | |
parent | 9d96a06e026b1ab4151adfeccca72a3431398c35 (diff) | |
download | scintilla-mirror-f642f3da2bb8676fd67a35319e58fdd69a8ca3d8.tar.gz |
Backport: Use Range and Position in more cases to avoid casts.
Backport of changeset 6790:cb56d38e7800.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r-- | src/PositionCache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h index c1ecd2c0f..2b3ea1485 100644 --- a/src/PositionCache.h +++ b/src/PositionCache.h @@ -92,7 +92,7 @@ public: void SetBracesHighlight(Range rangeLine, const Sci::Position braces[], char bracesMatchStyle, int xHighlight, bool ignoreStyle); void RestoreBracesHighlight(Range rangeLine, const Sci::Position braces[], bool ignoreStyle); - int FindBefore(XYPOSITION x, int lower, int upper) const; + int FindBefore(XYPOSITION x, Range range) const; int FindPositionFromX(XYPOSITION x, Range range, bool charPosition) const; Point PointFromPosition(int posInLine, int lineHeight, PointEnd pe) const; int EndLineStyle() const; @@ -199,7 +199,7 @@ class BreakFinder { const Document *pdoc; EncodingFamily encodingFamily; const SpecialRepresentations *preprs; - void Insert(int val); + void Insert(Sci::Position val); public: // If a whole run is longer than lengthStartSubdivision then subdivide // into smaller runs at spaces or punctuation. |