diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2016-10-11 00:32:40 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2016-10-11 00:32:40 +0100 |
| commit | 780a4605fa700874af7c9ed501d49c8e9722eac3 (patch) | |
| tree | 573737ca59669cd7842265415f898436b9d2256a /src/selection.cc | |
| parent | 8b6eba82088b64d8685afd4bfc0722d8a3b1d617 (diff) | |
More transform(...) filter cleanup using mem_fn when possible
Diffstat (limited to 'src/selection.cc')
| -rw-r--r-- | src/selection.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/selection.cc b/src/selection.cc index 7d725c6f..6b74a6ab 100644 --- a/src/selection.cc +++ b/src/selection.cc @@ -610,9 +610,7 @@ String selection_to_string(const Selection& selection) String selection_list_to_string(const SelectionList& selections) { - return join(selections | transform([](const Selection& s) - { return selection_to_string(s); }), - ':', false); + return join(selections | transform(selection_to_string), ':', false); } Selection selection_from_string(StringView desc) |
