diff --git a/Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.hxx b/Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.hxx index 5d96c9aca615c07cb76f617f8846f5ffca00b762..a38536377486589e151ed48db2dd154c0aea2ba6 100644 --- a/Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.hxx +++ b/Modules/Segmentation/Conversion/include/otbLabelImageSmallRegionMergingFilter.hxx @@ -121,7 +121,7 @@ PersistentLabelImageSmallRegionMergingFilter< TInputLabelImage > InputLabelType closestNeighbour = label; auto const& statsLabel = m_LabelStatistic[ label ]; - for (auto neighbour : neighbours.second) + for (auto const & neighbour : neighbours.second) { auto const & statsNeighbour = m_LabelStatistic[ neighbour ]; assert( statsLabel.Size() == statsNeighbour.Size() );