1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-24 12:02:15 +03:00

small code cleanups

This commit is contained in:
Maxime Coste 2017-05-17 20:17:16 +01:00
parent 7acf11c851
commit 3917d26709
2 changed files with 2 additions and 2 deletions

View File

@ -394,7 +394,7 @@ Vector<String> list_files(StringView dirname, Filter filter)
if (not dir)
return {};
auto closeDir = on_scope_end([=]{ closedir(dir); });
auto close_dir = on_scope_end([dir]{ closedir(dir); });
Vector<String> result;
while (dirent* entry = readdir(dir))

View File

@ -1480,7 +1480,7 @@ void InputHandler::handle_key(Key key)
{
const bool was_recording = is_recording();
++m_handle_key_level;
auto dec = on_scope_end([&]{ --m_handle_key_level; });
auto dec = on_scope_end([this]{ --m_handle_key_level; });
auto keymap_mode = current_mode().keymap_mode();
KeymapManager& keymaps = m_context.keymaps();