From 77be90ad438a2709fbb891c41be40ad320014bcd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Joan=20Sol=C3=A0?= <jsola@iri.upc.edu>
Date: Mon, 20 Jan 2020 18:08:29 +0100
Subject: [PATCH] make function const

---
 include/laser/landmark/landmark_polyline_2D.h | 2 +-
 src/landmark/landmark_polyline_2D.cpp         | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/laser/landmark/landmark_polyline_2D.h b/include/laser/landmark/landmark_polyline_2D.h
index cac3d358e..8d8ce4b3e 100644
--- a/include/laser/landmark/landmark_polyline_2D.h
+++ b/include/laser/landmark/landmark_polyline_2D.h
@@ -200,7 +200,7 @@ class LandmarkPolyline2D : public LandmarkBase
 
         /** \brief Adds all stateBlocks of the frame to the wolfProblem list of new stateBlocks
          **/
-        virtual void registerNewStateBlocks();
+        virtual void registerNewStateBlocks() const;
         virtual void removeStateBlocks();
 
         /** Factory method to create new landmarks from YAML nodes
diff --git a/src/landmark/landmark_polyline_2D.cpp b/src/landmark/landmark_polyline_2D.cpp
index 2ca2a3150..7b1edfbed 100644
--- a/src/landmark/landmark_polyline_2D.cpp
+++ b/src/landmark/landmark_polyline_2D.cpp
@@ -907,7 +907,7 @@ void LandmarkPolyline2D::mergeLandmark(const LandmarkPolyline2DPtr _merged_lmk,
     //std::cout << "\tLandmark deleted\n";
 }
 
-void LandmarkPolyline2D::registerNewStateBlocks()
+void LandmarkPolyline2D::registerNewStateBlocks() const
 {
     LandmarkBase::registerNewStateBlocks();
 	if (getProblem())
-- 
GitLab