diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-20 18:45:59 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-06-20 18:47:20 +0200 |
commit | c1be0706d4872f31bcc09c0963c7602ac19f8c76 (patch) | |
tree | f66a4c525eb522447d543429a5c026c9325d9b1f /logic/pipeline.cpp | |
parent | 74ce228b1e3e756174c2e75579bfe500701ee570 (diff) |
logic/work: const correctness
Diffstat (limited to 'logic/pipeline.cpp')
-rw-r--r-- | logic/pipeline.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/logic/pipeline.cpp b/logic/pipeline.cpp index 65699287..809a8ce8 100644 --- a/logic/pipeline.cpp +++ b/logic/pipeline.cpp @@ -184,7 +184,7 @@ Pose_ reltrans::apply_neck(const rmat& R, int nz, bool disable_tz) const return neck; } -pipeline::pipeline(Mappings& m, runtime_libraries& libs, event_handler& ev, TrackLogger& logger) : +pipeline::pipeline(const Mappings& m, const runtime_libraries& libs, event_handler& ev, TrackLogger& logger) : m(m), ev(ev), libs(libs), logger(logger) { } @@ -195,7 +195,7 @@ pipeline::~pipeline() wait(); } -double pipeline::map(double pos, Map& axis) +double pipeline::map(double pos, const Map& axis) { bool altp = (pos < 0) && axis.opts.altp; axis.spline_main.set_tracking_active(!altp); |