aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-05-03 07:48:10 +1000
committerNeil <nyamatongwe@gmail.com>2018-05-03 07:48:10 +1000
commit1a35c89b60c7e487d005c632b1e8f7e00eb961ab (patch)
treef9feff77c62442889b3f838b649f6cdaa8607b13 /src/PositionCache.h
parenta3e6fe8011067ef22c673342b40b1f924c06b3c1 (diff)
downloadscintilla-mirror-1a35c89b60c7e487d005c632b1e8f7e00eb961ab.tar.gz
Use Range and Position in more cases to avoid casts.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h4
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.