summaryrefslogtreecommitdiff
path: root/src/completion.hh
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2017-03-16 23:08:10 +0000
committerMaxime Coste <mawww@kakoune.org>2017-03-16 23:34:02 +0000
commite44f95820ee182460bee2e7569ab4ecb1d444112 (patch)
treeeaf60c648066fef5b57512dc6ccc47d8095717e4 /src/completion.hh
parent5f7464d90d0bfe641dd2c7bbbca6e78d92d9d818 (diff)
Fixes some clang-tidy warning and add a few missing meta.hh include
Diffstat (limited to 'src/completion.hh')
-rw-r--r--src/completion.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/completion.hh b/src/completion.hh
index 335cfbd6..19275824 100644
--- a/src/completion.hh
+++ b/src/completion.hh
@@ -29,7 +29,7 @@ struct Completions
: start(start), end(end) {}
Completions(ByteCount start, ByteCount end, CandidateList candidates)
- : start(start), end(end), candidates(std::move(candidates)) {}
+ : candidates(std::move(candidates)), start(start), end(end) {}
};
enum class CompletionFlags
@@ -44,7 +44,7 @@ constexpr bool with_bit_ops(Meta::Type<CompletionFlags>) { return true; }
using Completer = std::function<Completions (const Context&, CompletionFlags,
StringView, ByteCount)>;
-inline Completions complete_nothing(const Context& context, CompletionFlags,
+inline Completions complete_nothing(const Context&, CompletionFlags,
StringView, ByteCount cursor_pos)
{
return {cursor_pos, cursor_pos};