diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2012-11-26 18:50:34 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2012-11-26 18:50:34 +0100 |
| commit | e77ca7a4be3adc8d11503b1186b8fac257a1624c (patch) | |
| tree | 280d6b82332be2645208840e216d8b56887e5e00 /src/selection.hh | |
| parent | 9effba2c667cba653e7c8bd78cc86b1d12a10c9b (diff) | |
minor code simplification
Diffstat (limited to 'src/selection.hh')
| -rw-r--r-- | src/selection.hh | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/selection.hh b/src/selection.hh index 3de6937e..a75c9e3c 100644 --- a/src/selection.hh +++ b/src/selection.hh @@ -62,13 +62,11 @@ struct SelectionAndCaptures SelectionAndCaptures(const BufferIterator& first, const BufferIterator& last, - CaptureList captures_list) + CaptureList captures_list = {}) : selection(first, last), captures(std::move(captures_list)) {} SelectionAndCaptures(const Selection& sel, - CaptureList captures_list) + CaptureList captures_list = {}) : selection(sel), captures(std::move(captures_list)) {} - SelectionAndCaptures(const Selection& sel) - : selection(sel) {} // helper to access the selection BufferIterator begin() const { return selection.begin(); } |
