summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-10-22 15:11:28 +0200
committerStanislaw Halik <sthalik@misaki.pl>2014-10-22 15:11:28 +0200
commit8658c2ff987c0656b9b87d966ad1bee8311f7ee4 (patch)
treef9f4e19a310eb0080698aabe85b1c39ff7f63b38
parent00367760ac7e059a3cd9ba4baec11ad0a074771c (diff)
-rw-r--r--opentrack/work.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/opentrack/work.hpp b/opentrack/work.hpp
index d0130018..510232db 100644
--- a/opentrack/work.hpp
+++ b/opentrack/work.hpp
@@ -16,7 +16,7 @@ struct Work
ptr<Tracker> tracker;
ptr<Shortcuts> sc;
WId handle;
-
+
Work(main_settings& s, Mappings& m, SelectedLibraries& libs, QObject* recv, WId handle) :
s(s), libs(libs),
tracker(std::make_shared<Tracker>(s, m, libs)),
@@ -32,16 +32,16 @@ struct Work
#endif
tracker->start();
}
-
+
void reload_shortcuts()
{
sc->reload();
}
-
+
~Work()
{
// order matters, otherwise use-after-free -sh
tracker = nullptr;
libs = SelectedLibraries();
- }
+ }
};