From 9e15181dc9b56435c5e1d3ab87dd03404d6c31c9 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Tue, 8 Mar 2016 21:35:56 +0000 Subject: Rework container helpers, use pipe syntax and cleanup implementation use 'container | filter(func) | reverse() | transform(func)' instead of 'transform(reverse(filter(container), func), func)' to express container transformations. --- src/hook_manager.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hook_manager.cc') diff --git a/src/hook_manager.cc b/src/hook_manager.cc index 81a00730..389c8504 100644 --- a/src/hook_manager.cc +++ b/src/hook_manager.cc @@ -31,7 +31,7 @@ CandidateList HookManager::complete_hook_group(StringView prefix, ByteCount pos_ CandidateList res; for (auto& list : m_hook) { - auto container = transformed(list.value, decltype(list.value)::get_id); + auto container = list.value | transform(decltype(list.value)::get_id); for (auto& c : complete(prefix, pos_in_token, container)) { if (!contains(res, c)) -- cgit v1.2.3