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.hpp | |
parent | 4046773c41ee3c0f65840828ab983cfd13451c85 (diff) |
modernize C++ syntax
No visible changes (hopefully).
Diffstat (limited to 'gui/settings.hpp')
-rw-r--r-- | gui/settings.hpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gui/settings.hpp b/gui/settings.hpp index 63e109a4..ebcaa66c 100644 --- a/gui/settings.hpp +++ b/gui/settings.hpp @@ -4,10 +4,12 @@ #include "gui/ui_settings-dialog.h" #include "logic/shortcuts.h" + +#include <functional> + #include <QObject> #include <QDialog> #include <QWidget> -#include <functional> class OTR_GUI_EXPORT options_dialog : public QDialog { @@ -15,12 +17,12 @@ class OTR_GUI_EXPORT options_dialog : public QDialog signals: void closing(); public: - options_dialog(std::function<void(bool)> pause_keybindings); + options_dialog(std::function<void(bool)>&& pause_keybindings); private: main_settings main; std::function<void(bool)> pause_keybindings; Ui::options_dialog ui; - void closeEvent(QCloseEvent *) override; + void closeEvent(QCloseEvent*) override; static QString kopts_to_string(const key_opts& opts); private slots: void doOK(); |