summaryrefslogtreecommitdiffhomepage
path: root/logic/shortcuts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/shortcuts.cpp')
-rw-r--r--logic/shortcuts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/shortcuts.cpp b/logic/shortcuts.cpp
index 5ddefc1f..478036a2 100644
--- a/logic/shortcuts.cpp
+++ b/logic/shortcuts.cpp
@@ -130,14 +130,14 @@ void Shortcuts::reload(const t_keys& keys_)
const auto& kk = keys_[i];
const key_opts& opts = std::get<0>(kk);
const bool held = std::get<2>(kk);
- auto fun = std::get<1>(kk);
+ auto const& fun = std::get<1>(kk);
#ifdef _WIN32
K k;
#else
K k(nullptr);
#endif
bind_shortcut(k, opts, held);
- keys.push_back(tt(k, [=](bool flag) { fun(flag); }, held));
+ keys.emplace_back(k, [=](bool flag) { fun(flag); }, held);
#ifndef _WIN32
const int idx = keys.size() - 1;