From cfe4da0b81ada6cad528a269d8dc5ec5661edd44 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 25 Feb 2017 14:10:10 +0100 Subject: gui/options-dialog: sprinkle some konst reference --- gui/options-dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gui') 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) { -- cgit v1.2.3