Skip to content

Commit 225db63

Browse files
committed
STYLE: Make prototype match definition names
Enforce consistency in large projects, where it often happens that a definition of function is refactored, changing the parameter names, but its declaration in header file is not updated. With this check, we can easily find and correct such inconsistencies, keeping declaration and definition always in sync. Unnamed parameters are allowed and are not taken into account when comparing function declarations
1 parent 34ac871 commit 225db63

File tree

1 file changed

+1
-1
lines changed
  • src/Numerics/Statistics/CreateHistogramFromListOfMeasurements

1 file changed

+1
-1
lines changed

src/Numerics/Statistics/CreateHistogramFromListOfMeasurements/Code.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ using SampleType = itk::Statistics::ListSample<MeasurementVectorType>;
2525
using HistogramType = itk::Statistics::Histogram<float, itk::Statistics::DenseFrequencyContainer2>;
2626

2727
void
28-
CreateSample(SampleType::Pointer image);
28+
CreateSample(SampleType::Pointer sample);
2929

3030
int
3131
main(int, char *[])

0 commit comments

Comments
 (0)