Commit af136e99 authored by Manuel Grizonnet's avatar Manuel Grizonnet
Browse files

WRG: Fix 'catching polymorphic type by value' warnings

parent 40eb5a41
......@@ -124,7 +124,7 @@ int otbConfusionMatrixCalculatorWrongSize(int argc, char* argv[])
{
calculator->Compute();
}
catch (itk::ExceptionObject)
catch (itk::ExceptionObject& e)
{
return EXIT_FAILURE;
}
......
......@@ -38,7 +38,7 @@ int otbAeronetExtractDataBadData(int itkNotUsed(argc), char * argv[])
{
reader->Update();
}
catch (itk::ExceptionObject e)
catch (itk::ExceptionObject& e)
{
return EXIT_SUCCESS;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment