Skip to content

Commit

Permalink
STYLE: Increase itk::ListSample::PrintSelf consistency
Browse files Browse the repository at this point in the history
Make `itk::ListSample::PrintSelf` implementation style consistent
following the ITK SWG coding style guideline and the
available ITK macros:
- Print only the class instance variables.
- Use the `os << indent << "{ivarName}: " << m_ivarName << std::endl`
  recipe.
  • Loading branch information
jhlegarreta authored and dzenanz committed Nov 8, 2023
1 parent e446eff commit fe184c8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Modules/Numerics/Statistics/include/itkListSample.hxx
Expand Up @@ -134,8 +134,7 @@ ListSample<TMeasurementVector>::PrintSelf(std::ostream & os, Indent indent) cons
{
Superclass::PrintSelf(os, indent);

os << indent << "Internal Data Container: " << &m_InternalContainer << std::endl;
os << indent << "Number of samples: " << this->m_InternalContainer.size() << std::endl;
os << indent << "InternalContainer: " << &m_InternalContainer << std::endl;
}
} // end of namespace Statistics
} // end of namespace itk
Expand Down

0 comments on commit fe184c8

Please sign in to comment.