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
commit47ac30dfae520dd56e0c4cd20827d65bae25e073 (patch)
treeb032e0dc0eda28a8e64977298dcc04e884f5ce5e /src/Selection.h
parent93c33490b77157f2e5422f4962ac4b88f4aea7c5 (diff)
downloadscintilla-mirror-47ac30dfae520dd56e0c4cd20827d65bae25e073.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_);