diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 22:25:22 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:05:21 +0200 |
commit | d65936200a2756e6619a109fa6fa673b91df802e (patch) | |
tree | 80b6b6fc7ba9023cbe47290b8ae1bc5468a19bb1 /gui/settings.cpp | |
parent | 4046773c41ee3c0f65840828ab983cfd13451c85 (diff) |
modernize C++ syntax
No visible changes (hopefully).
Diffstat (limited to 'gui/settings.cpp')
-rw-r--r-- | gui/settings.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gui/settings.cpp b/gui/settings.cpp index ee0e9959..d280a9b7 100644 --- a/gui/settings.cpp +++ b/gui/settings.cpp @@ -9,6 +9,9 @@ #include "settings.hpp" #include "keyboard.h" #include "compat/library-path.hpp" + +#include <utility> + #include <QPushButton> #include <QLayout> #include <QDialog> @@ -41,8 +44,8 @@ void options_dialog::set_disable_translation_state(bool value) }); } -options_dialog::options_dialog(std::function<void(bool)> pause_keybindings) : - pause_keybindings(pause_keybindings) +options_dialog::options_dialog(std::function<void(bool)>&& pause_keybindings) : + pause_keybindings(std::move(pause_keybindings)) { ui.setupUi(this); |