From 7859dd2ac89ed078692cd370b3bdb43740298c5e Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 23 Jun 2014 17:03:49 +1000 Subject: Use Range type for hotspot to simplify manipulation. --- src/Editor.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 4826a1852..6c7ae6c59 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -309,8 +309,7 @@ protected: // ScintillaBase subclass needs access to much of Editor ContractionState cs; // Hotspot support - int hsStart; - int hsEnd; + Range hotspot; // Wrapping support int wrapWidth; @@ -623,7 +622,7 @@ protected: // ScintillaBase subclass needs access to much of Editor bool PositionIsHotspot(int position) const; bool PointIsHotspot(Point pt); void SetHotSpotRange(Point *pt); - void GetHotSpotRange(int &hsStart, int &hsEnd) const; + Range GetHotSpotRange() const; int CodePage() const; virtual bool ValidCodePage(int /* codePage */) const { return true; } -- cgit v1.2.3