Skip to content

Commit

Permalink
ENH: Prefer C++11 headers over C99 variants.
Browse files Browse the repository at this point in the history
  • Loading branch information
hjmjohnson committed Nov 8, 2018
1 parent 41c0f3f commit 5ffef40
Show file tree
Hide file tree
Showing 38 changed files with 51 additions and 51 deletions.
6 changes: 3 additions & 3 deletions Examples/ANTSUseDeformationFieldToGetAffineTransform.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
#include "antsUtilities.h"
#include <algorithm>

#include <stdio.h>
#include <time.h>
#include <cstdio>
#include <ctime>

#include "itkLandmarkBasedTransformInitializer.h"
#include "itkImage.h"
#include "itkImageIOBase.h"
#include "itkImageIOFactory.h"
#include <math.h>
#include <cmath>
#include <iostream>
#include "ReadWriteData.h"
#include "itkTransformFileWriter.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/ANTSUseLandmarkImagesToGetAffineTransform.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include "itkImage.h"
#include "itkImageIOBase.h"
#include "itkImageIOFactory.h"
#include <math.h>
#include <cmath>
#include <iostream>
#include "ReadWriteData.h"
#include "itkTransformFileWriter.h"
Expand Down
4 changes: 2 additions & 2 deletions Examples/CheckTopology.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
#include <algorithm>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <time.h>
#include <cstdio>
#include <ctime>

#include "itkDiscreteGaussianImageFilter.h"
#include "itkImage.h"
Expand Down
4 changes: 2 additions & 2 deletions Examples/ConformalMapping.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include <algorithm>
#include <string>

#include <math.h>
#include <time.h>
#include <cmath>
#include <ctime>

#include "itkImage.h"

Expand Down
4 changes: 2 additions & 2 deletions Examples/ConvertImagePixelType.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include <algorithm>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <limits.h>
#include <cstdio>
#include <climits>
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkImageFileReader.h"
Expand Down
4 changes: 2 additions & 2 deletions Examples/ConvertInputImagePixelTypeToFloat.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
#include <algorithm>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <limits.h>
#include <cstdio>
#include <climits>
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/ConvertToJpg.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <algorithm>
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <cstdio>
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/ConvertTransformFile.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include "itksys/SystemTools.hxx"

#include <fstream>
#include <stdio.h>
#include <cstdio>

#include "itkTransformFactory.h"
#include "itkAffineTransform.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/CopyImageHeaderInformation.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <cstdio>
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/CreateImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "antsAllocImage.h"
#include <algorithm>

#include <stdio.h>
#include <cstdio>

#include "itkImageFileReader.h"
#include "itkImageFileWriter.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/DeNrrd.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#include <sys/stat.h>

#include <fstream>
#include <stdio.h>
#include <cstdio>

#include <cstring>
#include <sstream>
Expand Down
2 changes: 1 addition & 1 deletion Examples/ExtractRegionFromImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "ReadWriteData.h"
#include <algorithm>

#include <stdio.h>
#include <cstdio>

#include "itkCastImageFilter.h"
#include "itkImage.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/ExtractRegionFromImageByMask.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "antsUtilities.h"
#include <algorithm>

#include <stdio.h>
#include <cstdio>

#include "itkCastImageFilter.h"
#include "itkImage.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/FitBSplineToPoints.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

#include "ReadWriteData.h"

#include <stdio.h>
#include <cstdio>
#include <vector>
#include <fstream>
#include <string>
Expand Down
4 changes: 2 additions & 2 deletions Examples/GetMeshAndTopology.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

#include <string>

#include <math.h>
#include <time.h>
#include <cmath>
#include <ctime>
#include "itkVTKPolyDataWriter.h"
#include "vtkSTLWriter.h"
#include "vtkXMLPolyDataWriter.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/PrintHeader.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <sys/stat.h>

#include <fstream>
#include <stdio.h>
#include <cstdio>
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/ResampleImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include "antsUtilities.h"
#include <algorithm>

#include <stdio.h>
#include <cstdio>

#include "itkImage.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/ResetDirection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <cstdio>
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/SetDirectionByMatrix.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <cstdio>
#include "antsAllocImage.h"
#include "itkImage.h"
#include "itkImageFileWriter.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/SetOrigin.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <cstdio>
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/SetSpacing.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <cstdio>
#include "itkImage.h"
#include "itkImageFileWriter.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/StackSlices.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
#include "antsAllocImage.h"
#include <algorithm>

#include <stdio.h>
#include <cstdio>

#include "itkBinaryThresholdImageFilter.h"
#include "itkExtractImageFilter.h"
Expand Down
6 changes: 3 additions & 3 deletions Examples/StudentsTestOnImages.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
#include <cstdlib>
#include <ctime>
#include <string>
#include <math.h>
#include <float.h>
#include <assert.h>
#include <cmath>
#include <cfloat>
#include <cassert>
#include "ReadWriteData.h"

#include <vnl/algo/vnl_symmetric_eigensystem.h>
Expand Down
2 changes: 1 addition & 1 deletion Examples/TensorDerivedImage.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#include "antsUtilities.h"
#include <algorithm>

#include <stdio.h>
#include <cstdio>

#include "itkImage.h"
#include "itkImageFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/TextureCooccurrenceFeatures.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <algorithm>
#include "ReadWriteData.h"

#include <stdio.h>
#include <cstdio>

#include "itkImage.h"
#include "itkImageRegionIteratorWithIndex.h"
Expand Down
2 changes: 1 addition & 1 deletion Examples/TextureRunLengthFeatures.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <algorithm>
#include "ReadWriteData.h"

#include <stdio.h>
#include <cstdio>

#include "itkBoundingBox.h"
#include "itkImage.h"
Expand Down
4 changes: 2 additions & 2 deletions Examples/antsUtilities.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
#include <deque>
#include <string>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <cstdio>
#include <cmath>
#include <iostream>
#include <fstream>

Expand Down
4 changes: 2 additions & 2 deletions Examples/antsUtilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#include <vector>
#include <algorithm>

#include <stdlib.h>
#include <errno.h>
#include <cstdlib>
#include <cerrno>
#include <cmath>
#include <iostream>

Expand Down
2 changes: 1 addition & 1 deletion Examples/antsUtilitiesTesting.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include <algorithm>
#include "ReadWriteData.h"

#include <stdio.h>
#include <cstdio>

#include "itkAffineTransform.h"
#include "itkCenteredTransformInitializer.h"
Expand Down
4 changes: 2 additions & 2 deletions ImageRegistration/ANTS_affine_registration.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define ANTS_AFFINE_REGISTRATION_H_

#include <vector>
#include <stdlib.h>
#include <time.h>
#include <cstdlib>
#include <ctime>
#include "itkImage.h"
#include "itkPoint.h"
#include "itkCastImageFilter.h"
Expand Down
4 changes: 2 additions & 2 deletions ImageRegistration/ANTS_affine_registration2.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
#define ANTS_AFFINE_REGISTRATION2_H_

#include <vector>
#include <stdlib.h>
#include <time.h>
#include <cstdlib>
#include <ctime>
#include "itkImage.h"
#include "itkPoint.h"
#include "itkCastImageFilter.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#pragma warning(disable: 4786)
#endif

#include <math.h>
#include <cmath>
#include "itkFEMElement3DC0LinearTriangularLaplaceBeltrami.h"

namespace itk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#pragma warning(disable: 4786)
#endif

#include <math.h>
#include <cmath>
#include "itkFEMElement3DC0LinearTriangularMembrane.h"

namespace itk
Expand Down
2 changes: 1 addition & 1 deletion Tensor/itkRotationMatrixFromVectors.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
http://jgt.akpeters.com/papers/MollerHughes99/code.html
*/

#include <math.h>
#include <cmath>
#include <itkVector.h>
#include <itkMatrix.h>

Expand Down
2 changes: 1 addition & 1 deletion Utilities/ReadWriteData.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "antsAllocImage.h"
#include <iostream>
#include <fstream>
#include <stdio.h>
#include <cstdio>
#include "itkVector.h"
#include "itkImage.h"
#include "itkImageFileWriter.h"
Expand Down
2 changes: 1 addition & 1 deletion Utilities/antsCommandLineParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <list>
#include <sstream>
#include <stdio.h>
#include <cstdio>
#include <string>
#include <vector>

Expand Down
2 changes: 1 addition & 1 deletion Utilities/antsSCCANObject.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <vnl/algo/vnl_matrix_inverse.h>
#include <vnl/algo/vnl_generalized_eigensystem.h>
#include "antsSCCANObject.h"
#include <time.h>
#include <ctime>
#include "itkCSVNumericObjectFileWriter.h"
#include "itkCSVArray2DDataObject.h"
#include "itkCSVArray2DFileReader.h"
Expand Down
2 changes: 1 addition & 1 deletion Utilities/itkLabeledPointSetFileReader.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#include "itkByteSwapper.h"

#include <fstream>
#include <stdio.h>
#include <cstdio>
#include <string>

namespace itk
Expand Down

0 comments on commit 5ffef40

Please sign in to comment.