@@ -260,7 +260,7 @@ FrobeniusNormOfMatrixDifference(int argc, char * argv[])
260
260
{
261
261
transformReader1->Update();
262
262
}
263
- catch (itk::ExceptionObject & /* excp */)
263
+ catch (const itk::ExceptionObject & /* excp */)
264
264
{
265
265
std::cout << "no transformation1 that can be read" << fn1 << std::endl;
266
266
return 0;
@@ -271,7 +271,7 @@ FrobeniusNormOfMatrixDifference(int argc, char * argv[])
271
271
{
272
272
transformReader2->Update();
273
273
}
274
- catch (itk::ExceptionObject & /* excp */)
274
+ catch (const itk::ExceptionObject & /* excp */)
275
275
{
276
276
std::cout << "no transformation2 that can be read" << fn2 << std::endl;
277
277
return 0;
@@ -485,7 +485,7 @@ GetLargestComponent(int argc, char * argv[])
485
485
{
486
486
relabel->Update();
487
487
}
488
- catch (itk::ExceptionObject & /* excep */)
488
+ catch (const itk::ExceptionObject & /* excep */)
489
489
{
490
490
// std::cout << "Relabel: exception caught !" << std::endl;
491
491
// std::cout << excep << std::endl;
@@ -603,7 +603,7 @@ ClusterThresholdVariate(int argc, char * argv[])
603
603
{
604
604
relabel->Update();
605
605
}
606
- catch (itk::ExceptionObject & /* excep */)
606
+ catch (const itk::ExceptionObject & /* excep */)
607
607
{
608
608
// std::cout << "Relabel: exception caught !" << std::endl;
609
609
// std::cout << excep << std::endl;
@@ -2959,7 +2959,7 @@ SliceTimingCorrection(int argc, char * argv[])
2959
2959
{
2960
2960
filter->Update();
2961
2961
}
2962
- catch (itk::ExceptionObject & /* exp */)
2962
+ catch (const itk::ExceptionObject & /* exp */)
2963
2963
{
2964
2964
// std::cout << "Exception caught!" << std::endl;
2965
2965
// std::cout << exp << std::endl;
@@ -3781,7 +3781,7 @@ TimeSeriesToMatrix(int argc, char * argv[])
3781
3781
{
3782
3782
writer->Write();
3783
3783
}
3784
- catch (itk::ExceptionObject & /* exp */)
3784
+ catch (const itk::ExceptionObject & /* exp */)
3785
3785
{
3786
3786
// std::cout << "Exception caught!" << std::endl;
3787
3787
// std::cout << exp << std::endl;
@@ -4498,7 +4498,7 @@ CompCorrAuto(int argc, char * argv[])
4498
4498
{
4499
4499
writer->Write();
4500
4500
}
4501
- catch (itk::ExceptionObject & /* exp */)
4501
+ catch (const itk::ExceptionObject & /* exp */)
4502
4502
{
4503
4503
// std::cout << "Exception caught!" << std::endl;
4504
4504
// std::cout << exp << std::endl;
@@ -4840,7 +4840,7 @@ ThreeTissueConfounds(int argc, char * argv[])
4840
4840
{
4841
4841
writer->Write();
4842
4842
}
4843
- catch (itk::ExceptionObject & /* exp */)
4843
+ catch (const itk::ExceptionObject & /* exp */)
4844
4844
{
4845
4845
// std::cout << "Exception caught!" << std::endl;
4846
4846
// std::cout << exp << std::endl;
@@ -6222,7 +6222,7 @@ TensorFunctions(int argc, char * argv[])
6222
6222
{
6223
6223
whichvec = std::stoi(fn2.c_str());
6224
6224
}
6225
- catch (std::invalid_argument & itkNotUsed(e))
6225
+ catch (const std::invalid_argument & itkNotUsed(e))
6226
6226
{
6227
6227
// arg is not whichvec
6228
6228
}
@@ -8680,7 +8680,7 @@ FillHoles(int argc, char * argv[])
8680
8680
{
8681
8681
relabel->Update();
8682
8682
}
8683
- catch (itk::ExceptionObject & /* excep */)
8683
+ catch (const itk::ExceptionObject & /* excep */)
8684
8684
{
8685
8685
// std::cout << "Relabel: exception caught !" << std::endl;
8686
8686
// std::cout << excep << std::endl;
@@ -9903,7 +9903,7 @@ DiceAndMinDistSum(int argc, char * argv[])
9903
9903
{
9904
9904
OutputCSV->Write();
9905
9905
}
9906
- catch (itk::ExceptionObject & /* exp */)
9906
+ catch (const itk::ExceptionObject & /* exp */)
9907
9907
{
9908
9908
// std::cout << "Exception caught!" << std::endl;
9909
9909
// std::cout << exp << std::endl;
@@ -9945,7 +9945,7 @@ DiceAndMinDistSum(int argc, char * argv[])
9945
9945
OutputCSV->Write();
9946
9946
// std::cout << "Output written to " << outname.c_str() << ".csv." << std::endl;
9947
9947
}
9948
- catch (itk::ExceptionObject & /* exp */)
9948
+ catch (const itk::ExceptionObject & /* exp */)
9949
9949
{
9950
9950
// std::cout << "Exception caught!" << std::endl;
9951
9951
// std::cout << exp << std::endl;
@@ -11441,7 +11441,7 @@ ConvertImageSetToMatrix(unsigned int argc, char * argv[])
11441
11441
{
11442
11442
writer->Write();
11443
11443
}
11444
- catch (itk::ExceptionObject & /* exp */)
11444
+ catch (const itk::ExceptionObject & /* exp */)
11445
11445
{
11446
11446
// std::cout << "Exception caught!" << std::endl;
11447
11447
// std::cout << exp << std::endl;
@@ -11577,7 +11577,7 @@ RandomlySampleImageSetToCSV(unsigned int argc, char * argv[])
11577
11577
{
11578
11578
writer->Write();
11579
11579
}
11580
- catch (itk::ExceptionObject & /* exp */)
11580
+ catch (const itk::ExceptionObject & /* exp */)
11581
11581
{
11582
11582
// std::cout << "Exception caught!" << std::endl;
11583
11583
// std::cout << exp << std::endl;
@@ -11757,7 +11757,7 @@ ConvertImageSetToEigenvectors(unsigned int argc, char * argv[])
11757
11757
{
11758
11758
writer->Write();
11759
11759
}
11760
- catch (itk::ExceptionObject & /* exp */)
11760
+ catch (const itk::ExceptionObject & /* exp */)
11761
11761
{
11762
11762
// std::cout << "Exception caught!" << std::endl;
11763
11763
// std::cout << exp << std::endl;
@@ -11782,7 +11782,7 @@ ConvertImageSetToEigenvectors(unsigned int argc, char * argv[])
11782
11782
{
11783
11783
writer->Write();
11784
11784
}
11785
- catch (itk::ExceptionObject & /* exp */)
11785
+ catch (const itk::ExceptionObject & /* exp */)
11786
11786
{
11787
11787
// std::cout << "Exception caught!" << std::endl;
11788
11788
// std::cout << exp << std::endl;
0 commit comments