From ff1f4dcb5c74b970dbc59ce4696daf2947d4d746 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Mon, 22 Dec 2014 20:08:53 +0000 Subject: [PATCH] Minor cleanup --- src/word_db.cc | 2 +- src/word_db.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/word_db.cc b/src/word_db.cc index 193380ac..2b494fb9 100644 --- a/src/word_db.cc +++ b/src/word_db.cc @@ -133,7 +133,7 @@ void WordDB::update_db() template std::vector 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 res; for (auto&& word : words) { diff --git a/src/word_db.hh b/src/word_db.hh index 1e9e4318..06f4986f 100644 --- a/src/word_db.hh +++ b/src/word_db.hh @@ -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 find_prefix(StringView prefix);