From 3657d2c0d9807d6f88378981513a944cce4a1a16 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 29 Jun 2016 10:37:15 +0200 Subject: logic, gui: no need to reference "struct main_settings" Now that "struct main_settings" doesn't implicitly reload in dtor, we no longer have to pass it around from the user interface. Only reload it where it's modified, i.e. in the options dialog. Changing the filter/dialog/mapping comboboxen implicitly saves the main options however. --- opentrack-logic/tracker.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opentrack-logic/tracker.h') diff --git a/opentrack-logic/tracker.h b/opentrack-logic/tracker.h index 591ca03c..dad955c8 100644 --- a/opentrack-logic/tracker.h +++ b/opentrack-logic/tracker.h @@ -48,7 +48,7 @@ class OPENTRACK_LOGIC_EXPORT Tracker : private QThread Q_OBJECT private: QMutex mtx; - main_settings& s; + main_settings s; Mappings& m; Timer t; @@ -72,7 +72,7 @@ private: void t_compensate(const rmat& rmat, const double* ypr, double* output, bool rz); void run() override; public: - Tracker(main_settings& s, Mappings& m, SelectedLibraries& libs); + Tracker(Mappings& m, SelectedLibraries& libs); ~Tracker(); void get_raw_and_mapped_poses(double* mapped, double* raw) const; -- cgit v1.2.3