summaryrefslogtreecommitdiffhomepage
path: root/logic/pipeline.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-06-20 18:45:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2019-06-20 18:47:20 +0200
commitc1be0706d4872f31bcc09c0963c7602ac19f8c76 (patch)
treef66a4c525eb522447d543429a5c026c9325d9b1f /logic/pipeline.hpp
parent74ce228b1e3e756174c2e75579bfe500701ee570 (diff)
logic/work: const correctness
Diffstat (limited to 'logic/pipeline.hpp')
-rw-r--r--logic/pipeline.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/logic/pipeline.hpp b/logic/pipeline.hpp
index e6e9cc7e..7775054e 100644
--- a/logic/pipeline.hpp
+++ b/logic/pipeline.hpp
@@ -83,7 +83,7 @@ class OTR_LOGIC_EXPORT pipeline : private QThread
mutable QMutex mtx;
main_settings s;
- Mappings& m;
+ const Mappings& m;
event_handler& ev;
Timer t;
@@ -107,7 +107,7 @@ class OTR_LOGIC_EXPORT pipeline : private QThread
bool tracking_started = false;
- static double map(double pos, Map& axis);
+ static double map(double pos, const Map& axis);
void logic();
void run() override;
bool maybe_enable_center_on_tracking_started();
@@ -123,7 +123,7 @@ class OTR_LOGIC_EXPORT pipeline : private QThread
bits b;
public:
- pipeline(Mappings& m, runtime_libraries& libs, event_handler& ev, TrackLogger& logger);
+ pipeline(const Mappings& m, const runtime_libraries& libs, event_handler& ev, TrackLogger& logger);
~pipeline() override;
void raw_and_mapped_pose(double* mapped, double* raw) const;