1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-27 12:16:22 +03:00

Minor cleanup

This commit is contained in:
Maxime Coste 2014-12-22 20:08:53 +00:00
parent e911c86306
commit ff1f4dcb5c
2 changed files with 2 additions and 2 deletions

View File

@ -133,7 +133,7 @@ void WordDB::update_db()
template<typename Func>
std::vector<InternedString> find_matching(const WordDB::WordList& words, StringView str, Func func)
{
WordDB::UsedChars letters = used_letters(str);
const WordDB::UsedChars letters = used_letters(str);
std::vector<InternedString> res;
for (auto&& word : words)
{

View File

@ -15,7 +15,7 @@ class WordDB
{
public:
WordDB(const Buffer& buffer);
WordDB(const WordDB&) { kak_assert(false); }
WordDB(const WordDB&) = delete;
WordDB(WordDB&&) = default;
std::vector<InternedString> find_prefix(StringView prefix);