Skip to content
Snippets Groups Projects
Commit e750c937 authored by Cédric Traizet's avatar Cédric Traizet
Browse files

BUG: catch exception by reference

parent 61f6a534
No related branches found
No related tags found
No related merge requests found
......@@ -103,7 +103,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::SunElevation, this->GetSunElevation());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......@@ -111,7 +111,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::SunAzimuth, this->GetSunAzimuth());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......@@ -119,7 +119,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::SatElevation, this->GetSatElevation());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......@@ -127,7 +127,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::SatAzimuth, this->GetSatAzimuth());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......@@ -135,7 +135,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::PhysicalBias, this->GetPhysicalBias());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......@@ -143,7 +143,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::PhysicalGain, this->GetPhysicalGain());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......@@ -151,7 +151,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::SolarIrradiance, this->GetSolarIrradiance());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......@@ -159,7 +159,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::FirstWavelength, this->GetFirstWavelengths());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......@@ -167,7 +167,7 @@ bool OpticalImageMetadataInterface::ConvertImageKeywordlistToImageMetadata()
{
this->m_Imd.Add(MDNum::LastWavelength, this->GetLastWavelengths());
}
catch (const itk::ExceptionObject)
catch (const itk::ExceptionObject &)
{
result = false;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment