Fix some clang warnings

This commit is contained in:
Maxime Coste 2019-09-26 20:22:27 +10:00
parent 1d9a9bc308
commit aa6a7e544d
2 changed files with 3 additions and 3 deletions

View File

@ -588,7 +588,7 @@ Optional<Key> NCursesUI::get_next_key()
if (not c) if (not c)
return {}; return {};
auto parse_key = [this](unsigned char c) -> Key { auto parse_key = [](unsigned char c) -> Key {
if (c == control('m') or c == control('j')) if (c == control('m') or c == control('j'))
return {Key::Return}; return {Key::Return};
if (c == control('i')) if (c == control('i'))
@ -733,7 +733,7 @@ Optional<Key> NCursesUI::get_next_key()
return {}; return {};
}; };
auto parse_ss3 = [this]() -> Optional<Key> { auto parse_ss3 = []() -> Optional<Key> {
switch (get_char().value_or((unsigned char)0xff)) switch (get_char().value_or((unsigned char)0xff))
{ {
case 'A': return Key{Key::Up}; case 'A': return Key{Key::Up};

View File

@ -15,7 +15,7 @@
namespace Kakoune namespace Kakoune
{ {
class DisplayAtom; struct DisplayAtom;
struct NCursesWin; struct NCursesWin;