From e2a05b37d850521b4392adc7f3f26068f7c4bbd4 Mon Sep 17 00:00:00 2001 From: Manohar Paluri Date: Fri, 28 Aug 2009 15:15:05 +0000 Subject: [PATCH] changed parameter to const in function eq_combine_and_eliminate --- cpp/ConstrainedLinearFactorGraph.cpp | 2 +- cpp/ConstrainedLinearFactorGraph.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cpp/ConstrainedLinearFactorGraph.cpp b/cpp/ConstrainedLinearFactorGraph.cpp index d29b89a06..512a5cb43 100644 --- a/cpp/ConstrainedLinearFactorGraph.cpp +++ b/cpp/ConstrainedLinearFactorGraph.cpp @@ -157,7 +157,7 @@ void ConstrainedLinearFactorGraph::print(const std::string& s) const } void ConstrainedLinearFactorGraph::eq_combine_and_eliminate( - const EqualityFactor& eqf, MutableLinearFactor& joint_factor) // joint factor should be const + const EqualityFactor& eqf, const MutableLinearFactor& joint_factor) { // start empty remaining factor to be returned boost::shared_ptr lf(new MutableLinearFactor); diff --git a/cpp/ConstrainedLinearFactorGraph.h b/cpp/ConstrainedLinearFactorGraph.h index e218a4a28..59943b410 100644 --- a/cpp/ConstrainedLinearFactorGraph.h +++ b/cpp/ConstrainedLinearFactorGraph.h @@ -110,7 +110,7 @@ public: * Combines an equality factor with a joined linear factor * Executes in place, and will add new factors back to the graph */ - void eq_combine_and_eliminate(const EqualityFactor& eqf, MutableLinearFactor& joint_factor); + void eq_combine_and_eliminate(const EqualityFactor& eqf, const MutableLinearFactor& joint_factor); /** * This function returns the best ordering for this linear factor