summaryrefslogtreecommitdiff
path: root/src/Witness_complex/include
diff options
context:
space:
mode:
authorskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-01-30 12:44:11 +0000
committerskachano <skachano@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2017-01-30 12:44:11 +0000
commit5a4adcab18b7a577706cae7abfddc52a5cf8f1c5 (patch)
tree9f166d6447dc572a58caeb57153b69a5b3645b43 /src/Witness_complex/include
parentba522fc8c114b2de36c4b399d74edce8883d2577 (diff)
Added the consts to Nearest_landmark_table_ parameters following the comment by Marc
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/relaxed-witness@2027 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: 44f5e50e3d21baa0ec70aef022a1394bcc35b7d2
Diffstat (limited to 'src/Witness_complex/include')
-rw-r--r--src/Witness_complex/include/gudhi/Strong_witness_complex.h2
-rw-r--r--src/Witness_complex/include/gudhi/Witness_complex.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/Witness_complex/include/gudhi/Strong_witness_complex.h b/src/Witness_complex/include/gudhi/Strong_witness_complex.h
index f9d1d681..aae1bb43 100644
--- a/src/Witness_complex/include/gudhi/Strong_witness_complex.h
+++ b/src/Witness_complex/include/gudhi/Strong_witness_complex.h
@@ -79,7 +79,7 @@ private:
* @param[in] nearest_landmark_table needs to be a range of a range of nearest landmarks.
* The range of nearest landmarks should admit a member type 'iterator'. The dereference type
* of the nearest landmark range iterator needs to be 'std::pair<std::size_t, double>'. */
- Strong_witness_complex(Nearest_landmark_table_ & nearest_landmark_table)
+ Strong_witness_complex(Nearest_landmark_table_ const & nearest_landmark_table)
: nearest_landmark_table_(nearest_landmark_table)
{
}
diff --git a/src/Witness_complex/include/gudhi/Witness_complex.h b/src/Witness_complex/include/gudhi/Witness_complex.h
index 33c6c5d2..6741acde 100644
--- a/src/Witness_complex/include/gudhi/Witness_complex.h
+++ b/src/Witness_complex/include/gudhi/Witness_complex.h
@@ -81,7 +81,7 @@ private:
* of the nearest landmark range iterator needs to be 'std::pair<std::size_t, double>'.
*/
- Witness_complex(Nearest_landmark_table_ & nearest_landmark_table)
+ Witness_complex(Nearest_landmark_table_ const & nearest_landmark_table)
: nearest_landmark_table_(nearest_landmark_table)
{
}