fix unused variable warnings and add a const

This commit is contained in:
Jane Tournois 2024-11-05 10:27:54 +01:00
parent f3abf598ed
commit 75d3d30cb4
5 changed files with 6 additions and 6 deletions

View File

@ -52,7 +52,7 @@ A generator can choose to ignore this parameter.
*/
template <typename OutputIterator>
OutputIterator operator()(OutputIterator pts, int n);
OutputIterator operator()(OutputIterator pts, const int n);
/*!
Same as above, without the `n` parameter.

View File

@ -75,7 +75,7 @@ struct Construct_initial_points_gray_image
*
*/
template <typename OutputIterator>
OutputIterator operator()(OutputIterator pts, int n = 20) const
OutputIterator operator()(OutputIterator pts, const int n = 20) const
{
using CGAL::Mesh_3::internal::Create_gray_image_values_to_subdomain_indices;
using C_i_v_t_s_i = Create_gray_image_values_to_subdomain_indices<Functor>;

View File

@ -117,7 +117,7 @@ struct Construct_initial_points_labeled_image
* - a `MeshDomain::Index` for the corresponding subcomplex index
*/
template <typename OutputIterator>
OutputIterator operator()(OutputIterator pts, int n = 20) const
OutputIterator operator()(OutputIterator pts, const int n = 20) const
{
CGAL_IMAGE_IO_CASE(image_.image(), operator()(pts, CGAL::Identity<Word>(), n));
return pts;

View File

@ -42,7 +42,7 @@ namespace internal {
template < typename C3T3, typename MeshDomain, typename InitialPointsGenerator >
void
add_points_from_generator(C3T3& c3t3,
const MeshDomain& domain,
const MeshDomain&,
const int nb_initial_points,
const InitialPointsGenerator& generator)
{

View File

@ -176,7 +176,7 @@ private:
struct Dummy_initial_points_generator
{
template<typename OutputIterator>
OutputIterator operator()(OutputIterator oit, int n = 0) const { return oit; }
OutputIterator operator()(OutputIterator oit, const int) const { return oit; }
};
// Holds the two parameters `initial_points_generator` and `initial_points`,
@ -210,7 +210,7 @@ struct Initialization_options
{}
template<typename OutputIterator>
OutputIterator operator()(OutputIterator pts, int n = 0) const
OutputIterator operator()(OutputIterator pts, const int n = 0) const
{
// add initial_points
for (Initial_points_const_iterator it = begin_it; it != end_it; ++it)