diff options
author | Neil <nyamatongwe@gmail.com> | 2017-04-08 09:06:04 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2017-04-08 09:06:04 +1000 |
commit | a3dba4ebce72c3d26a66689a8db9e04d931f0c42 (patch) | |
tree | 0c33da6cc905929ffbc5e1943c95ee4a4113fe41 | |
parent | 1595b1fbedf5587bc7c60cc7a1156ac1bca69f59 (diff) | |
download | scintilla-mirror-a3dba4ebce72c3d26a66689a8db9e04d931f0c42.tar.gz |
Use reference for efficiency.
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index 4335e6386..15f1c9c29 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -4301,7 +4301,7 @@ bool Editor::PointInSelection(Point pt) { const SelectionPosition pos = SPositionFromLocation(pt, false, true); const Point ptPos = LocationFromPosition(pos); for (size_t r=0; r<sel.Count(); r++) { - const SelectionRange range = sel.Range(r); + const SelectionRange &range = sel.Range(r); if (range.Contains(pos)) { bool hit = true; if (pos == range.Start()) { |