summaryrefslogtreecommitdiffhomepage
path: root/logic/shortcuts.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2018-06-26 22:25:22 +0200
committerStanislaw Halik <sthalik@misaki.pl>2018-06-26 23:05:21 +0200
commitd65936200a2756e6619a109fa6fa673b91df802e (patch)
tree80b6b6fc7ba9023cbe47290b8ae1bc5468a19bb1 /logic/shortcuts.cpp
parent4046773c41ee3c0f65840828ab983cfd13451c85 (diff)
modernize C++ syntax
No visible changes (hopefully).
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;