From a0ebebe503affd3447a29c1253579f392cc45132 Mon Sep 17 00:00:00 2001 From: Neil Date: Sun, 22 Jun 2014 13:44:46 +1000 Subject: Stop storing a pointer to the selection on LineLayout objects where it may have a lifetime that is too long. Instead provide it as an argument to BreakFinder where it is only needed during intialisation. --- src/Selection.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Selection.h') diff --git a/src/Selection.h b/src/Selection.h index e7f62f061..9e95fb043 100644 --- a/src/Selection.h +++ b/src/Selection.h @@ -156,7 +156,9 @@ public: size_t Main() const; void SetMain(size_t r); SelectionRange &Range(size_t r); + const SelectionRange &Range(size_t r) const; SelectionRange &RangeMain(); + const SelectionRange &RangeMain() const; SelectionPosition Start() const; bool MoveExtends() const; void SetMoveExtends(bool moveExtends_); -- cgit v1.2.3