From 9f55add5ef6808c58b422565a2220290cff4a690 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Sun, 25 Aug 2019 00:05:02 +0200
Subject: [PATCH] Some more const

---
 include/core/problem/problem.h | 4 ++--
 src/problem/problem.cpp        | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/include/core/problem/problem.h b/include/core/problem/problem.h
index aae0dfb0c..a7432b151 100644
--- a/include/core/problem/problem.h
+++ b/include/core/problem/problem.h
@@ -234,7 +234,7 @@ class Problem : public std::enable_shared_from_this<Problem>
          *   - This decision is made at problem level, not at processor configuration level.
          *   - Therefore, if you want to permanently configure a processor for not creating key frames, see Processor::voting_active_ and its accessors.
          */
-        bool permitKeyFrame(ProcessorBasePtr _processor_ptr);
+        bool permitKeyFrame(ProcessorBasePtr _processor_ptr) const;
 
         /** \brief New key frame callback
          *
@@ -250,7 +250,7 @@ class Problem : public std::enable_shared_from_this<Problem>
          *   - This decision is made at problem level, not at processor configuration level.
          *   - Therefore, if you want to permanently configure a processor for not creating estimated frames, see Processor::voting_active_ and its accessors.
          */
-        bool permitAuxFrame(ProcessorBasePtr _processor_ptr);
+        bool permitAuxFrame(ProcessorBasePtr _processor_ptr) const;
 
         /** \brief New auxiliary frame callback
          *
diff --git a/src/problem/problem.cpp b/src/problem/problem.cpp
index 37a841abe..0792acf90 100644
--- a/src/problem/problem.cpp
+++ b/src/problem/problem.cpp
@@ -404,7 +404,7 @@ Eigen::VectorXs Problem::zeroState() const
     return state;
 }
 
-bool Problem::permitKeyFrame(ProcessorBasePtr _processor_ptr)
+bool Problem::permitKeyFrame(ProcessorBasePtr _processor_ptr) const
 {
     // This should implement a black list of processors that have forbidden keyframe creation
     // This decision is made at problem level, not at processor configuration level.
@@ -425,7 +425,7 @@ void Problem::keyFrameCallback(FrameBasePtr _keyframe_ptr, ProcessorBasePtr _pro
                 processor->keyFrameCallback(_keyframe_ptr, _time_tolerance);
 }
 
-bool Problem::permitAuxFrame(ProcessorBasePtr _processor_ptr)
+bool Problem::permitAuxFrame(ProcessorBasePtr _processor_ptr) const
 {
     // This should implement a black list of processors that have forbidden auxiliary frame creation
     // This decision is made at problem level, not at processor configuration level.
-- 
GitLab