From 237246527155276da68f0691c4d2ea5a2fef7497 Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Tue, 22 Apr 2014 09:59:10 +1000 Subject: Hoisting some calculations into classes: ContractionState::DisplayLastFromDoc Range::First and Range::Last. Changing Editor::RectangleFromRange arguments to a Range. Simplifying code and specifying some local variables as const. --- src/Editor.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/Editor.h') diff --git a/src/Editor.h b/src/Editor.h index 532211283..2f095a060 100644 --- a/src/Editor.h +++ b/src/Editor.h @@ -361,7 +361,7 @@ protected: // ScintillaBase subclass needs access to much of Editor virtual void DiscardOverdraw(); virtual void Redraw(); void RedrawSelMargin(int line=-1, bool allAfter=false); - PRectangle RectangleFromRange(int start, int end); + PRectangle RectangleFromRange(Range r); void InvalidateRange(int start, int end); bool UserVirtualSpace() const { -- cgit v1.2.3