diff --git a/Examples/Filtering/CompositeFilterExample.cxx b/Examples/Filtering/CompositeFilterExample.cxx index e5acdaec6c84046a674f2de359ad6ebb7c4970d5..b4c3b77fecd6e4d5c19569d72e005e7eeddbac5b 100644 --- a/Examples/Filtering/CompositeFilterExample.cxx +++ b/Examples/Filtering/CompositeFilterExample.cxx @@ -287,7 +287,7 @@ int main(int argc, char* argv[]) { writer->Update(); } - catch (itk::ExceptionObject e) + catch ( itk::ExceptionObject & e ) { std::cerr << "Error: " << e << std::endl; } diff --git a/Modules/Filtering/Path/test/otbImageToEdgePathFilter.cxx b/Modules/Filtering/Path/test/otbImageToEdgePathFilter.cxx index c833e3627ced1ca95b2f5955bf22f649c2103228..19a0819160f4be9262b0b17269e8f6e13fcaa08e 100644 --- a/Modules/Filtering/Path/test/otbImageToEdgePathFilter.cxx +++ b/Modules/Filtering/Path/test/otbImageToEdgePathFilter.cxx @@ -30,7 +30,7 @@ int otbImageToEdgePathFilter(int itkNotUsed(argc), char * argv[]) { const char * inputFilename = argv[1]; const char * outputFilename = argv[2]; - const unsigned int foreground((const unsigned int) ::atoi(argv[3])); + const unsigned int foreground = atoi(argv[3]); const unsigned int Dimension = 2; typedef unsigned char PixelType; diff --git a/Modules/IO/Carto/src/otbPlaceNameToLonLat.cxx b/Modules/IO/Carto/src/otbPlaceNameToLonLat.cxx index d3ce1201be71e5e8e340addb03c0997e0d795f89..303b042925674bf1b6458d5fbf593cef372d6d6f 100644 --- a/Modules/IO/Carto/src/otbPlaceNameToLonLat.cxx +++ b/Modules/IO/Carto/src/otbPlaceNameToLonLat.cxx @@ -107,7 +107,7 @@ void PlaceNameToLonLat::RetrieveXML(const std::ostringstream& urlStream) m_RequestSucceed = true; m_Curl->RetrieveUrlInMemory(urlStream.str(), m_CurlOutput); } - catch(itk::ExceptionObject) + catch( itk::ExceptionObject & err ) { m_RequestSucceed = false; } diff --git a/Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx b/Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx index 2f1291139c4bf28b3a8c36f320439f3608dfce6f..b3d8251bd13c711da59208fb114205bfff336c75 100644 --- a/Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx +++ b/Modules/IO/Carto/test/otbImageToOSMVectorDataGenerator.cxx @@ -57,7 +57,7 @@ int otbImageToOSMVectorDataGenerator(int argc, char * argv[]) { parser->ParseCommandLine(argc, argv, parseResult); } - catch ( itk::ExceptionObject ) + catch ( itk::ExceptionObject & err ) { return EXIT_FAILURE; } diff --git a/Modules/IO/Carto/test/otbOSMDataToVectorDataTests.cxx b/Modules/IO/Carto/test/otbOSMDataToVectorDataTests.cxx index 8e646f60c6e5c48b3e4cdfb9fc8c0caf30eb9eaf..f0ab54d241a184e535f576458a298da9852b5960 100644 --- a/Modules/IO/Carto/test/otbOSMDataToVectorDataTests.cxx +++ b/Modules/IO/Carto/test/otbOSMDataToVectorDataTests.cxx @@ -65,7 +65,7 @@ int otbOSMToVectorDataGeneratorByName (int argc, char * argv[]) { parser->ParseCommandLine(argc, argv, parseResult); } - catch ( itk::ExceptionObject ) + catch ( itk::ExceptionObject & err ) { return EXIT_FAILURE; } diff --git a/Modules/Learning/DempsterShafer/include/otbStandardDSCostFunction.hxx b/Modules/Learning/DempsterShafer/include/otbStandardDSCostFunction.hxx index 4829d1b55702558027f14f4a96cf53aefe61f118..002c20e28c3d8f45785e387d6d1c471a33a56376 100644 --- a/Modules/Learning/DempsterShafer/include/otbStandardDSCostFunction.hxx +++ b/Modules/Learning/DempsterShafer/include/otbStandardDSCostFunction.hxx @@ -80,7 +80,7 @@ typename StandardDSCostFunction<TDSValidationFilter> { internalFunctionGT->SetDescriptorModels(descModel); } - catch (itk::ExceptionObject /*& err*/) + catch ( itk::ExceptionObject & err ) { return 1; }