summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2017-02-25 14:10:10 +0100
committerStanislaw Halik <sthalik@misaki.pl>2017-02-25 14:20:00 +0100
commitcfe4da0b81ada6cad528a269d8dc5ec5661edd44 (patch)
treeaf76ae95094e332c1f38b0fd685d5ac7d89e403c
parent02f2779611e717701bdac557180ed669de0a5a22 (diff)
gui/options-dialog: sprinkle some konst reference
-rw-r--r--gui/options-dialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gui/options-dialog.cpp b/gui/options-dialog.cpp
index 18b434c4..356d7cef 100644
--- a/gui/options-dialog.cpp
+++ b/gui/options-dialog.cpp
@@ -157,7 +157,7 @@ void OptionsDialog::bind_key(key_opts& kopts, QLabel* label)
connect(k,
&KeyboardListener::key_pressed,
this,
- [&](QKeySequence s)
+ [&](const QKeySequence& s)
{
kopts.keycode = s.toString(QKeySequence::PortableText);
kopts.guid = "";
@@ -166,7 +166,7 @@ void OptionsDialog::bind_key(key_opts& kopts, QLabel* label)
});
connect(k, &KeyboardListener::joystick_button_pressed,
this,
- [&](QString guid, int idx, bool held)
+ [&](const QString& guid, int idx, bool held)
{
if (!held)
{