diff options
| author | Jason Felice <jason.m.felice@gmail.com> | 2019-11-02 18:36:19 -0400 |
|---|---|---|
| committer | Jason Felice <jason.m.felice@gmail.com> | 2019-11-09 12:53:45 -0500 |
| commit | 87e5a2f512a37b0b4a9f1a5700b0f54424e48f26 (patch) | |
| tree | 5af461d32c74ed930768f320f952d628e28adae7 /src/selection.cc | |
| parent | 9692e491ac4268071f246c822eb217a1820a54cd (diff) | |
Avoid copy constructing BufferCoord when comparing
Diffstat (limited to 'src/selection.cc')
| -rw-r--r-- | src/selection.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/selection.cc b/src/selection.cc index 33b4cd12..a5b2c7b1 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -45,7 +45,7 @@ void SelectionList::set(Vector<Selection> list, size_t main) bool compare_selections(const Selection& lhs, const Selection& rhs) { - const auto lmin = lhs.min(), rmin = rhs.min(); + const auto& lmin = lhs.min(), rmin = rhs.min(); return lmin == rmin ? lhs.max() < rhs.max() : lmin < rmin; } |
