aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Selection.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2014-06-22 13:44:46 +1000
committerNeil <nyamatongwe@gmail.com>2014-06-22 13:44:46 +1000
commita0ebebe503affd3447a29c1253579f392cc45132 (patch)
tree4110d4750ad2ba7e8c9e173ee049af35bdb40709 /src/Selection.h
parentee07f2adf11213314cdb76b04f1577d01692eab5 (diff)
downloadscintilla-mirror-a0ebebe503affd3447a29c1253579f392cc45132.tar.gz
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.
Diffstat (limited to 'src/Selection.h')
-rw-r--r--src/Selection.h2
1 files changed, 2 insertions, 0 deletions
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_);