From c1be0706d4872f31bcc09c0963c7602ac19f8c76 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 20 Jun 2019 18:45:59 +0200 Subject: logic/work: const correctness --- logic/pipeline.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'logic/pipeline.cpp') 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); -- cgit v1.2.3