mirror of https://github.com/CGAL/cgal
fix unused variable warnings and add a const
This commit is contained in:
parent
f3abf598ed
commit
75d3d30cb4
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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>;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue