summaryrefslogtreecommitdiffhomepage
path: root/gui/init.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-01-24 20:04:14 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-01-24 20:04:14 +0100
commit79aa5c60b38da8403ec2550247143c8f4b45d323 (patch)
treea8e1d29657ebc48509afaef8c979c43437a81c0d /gui/init.hpp
parent21ce1398513a085d44ef89a9250541769ad11e46 (diff)
gui, opentrack: simplify std::function/unique_ptr usage
Reported by: ElDesalmado
Diffstat (limited to 'gui/init.hpp')
-rw-r--r--gui/init.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gui/init.hpp b/gui/init.hpp
index 7c437bcb..4274f437 100644
--- a/gui/init.hpp
+++ b/gui/init.hpp
@@ -3,9 +3,10 @@
#include "export.hpp"
#include <functional>
+#include <memory>
#include <QWidget>
-OTR_GUI_EXPORT int otr_main(int argc, char** argv, std::function<QWidget*()> const& make_main_window);
+OTR_GUI_EXPORT int otr_main(int argc, char** argv, std::function<std::unique_ptr<QWidget>()> const& make_main_window);
// XXX TODO need split MainWindow into mixins each implementing part of the functionality