From 64db3d10f13ef98ac7e66d0dc20af6df1e1d1008 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joan=20Vallv=C3=A9=20Navarro?= <jvallve@iri.upc.edu> Date: Wed, 11 May 2022 10:43:57 +0200 Subject: [PATCH] hotfix: const function --- include/core/processor/motion_provider.h | 2 +- include/core/processor/processor_tracker.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/core/processor/motion_provider.h b/include/core/processor/motion_provider.h index 9a6e84d9c..d7bd26d00 100644 --- a/include/core/processor/motion_provider.h +++ b/include/core/processor/motion_provider.h @@ -80,7 +80,7 @@ class MotionProvider void setStatePriority(int); public: - const StateStructure& getStateStructure ( ) { return state_structure_; }; + const StateStructure& getStateStructure ( ) const { return state_structure_; }; void setStateStructure(std::string _state_structure) { state_structure_ = _state_structure; }; void addToProblem(ProblemPtr _prb_ptr, MotionProviderPtr _motion_ptr); diff --git a/include/core/processor/processor_tracker.h b/include/core/processor/processor_tracker.h index d93c9baa3..b0683aba0 100644 --- a/include/core/processor/processor_tracker.h +++ b/include/core/processor/processor_tracker.h @@ -136,7 +136,7 @@ class ProcessorTracker : public ProcessorBase ParamsProcessorTrackerPtr _params_tracker); ~ProcessorTracker() override; - StateStructure getStateStructure() const; + const StateStructure& getStateStructure() const; virtual CaptureBaseConstPtr getOrigin() const; virtual CaptureBasePtr getOrigin(); @@ -313,7 +313,7 @@ inline FeatureBasePtrList& ProcessorTracker::getNewFeaturesListIncoming() return new_features_incoming_; } -inline StateStructure ProcessorTracker::getStateStructure ( ) const +inline const StateStructure& ProcessorTracker::getStateStructure ( ) const { return state_structure_; } -- GitLab