Skip to content
Snippets Groups Projects
Commit 076af557 authored by scott snyder's avatar scott snyder
Browse files

Pythia8_i: Fix gcc8 warnings.

gcc8 warnings: Catching polymorphic exceptions by value.
parent 800e220c
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ StatusCode Pythia8_i::genInitialize() { ...@@ -134,7 +134,7 @@ StatusCode Pythia8_i::genInitialize() {
} }
} }
}catch(Pythia8_i::CommandException err){ }catch(const Pythia8_i::CommandException& err){
ATH_MSG_ERROR(err.what()); ATH_MSG_ERROR(err.what());
return StatusCode::FAILURE; return StatusCode::FAILURE;
} }
...@@ -184,7 +184,7 @@ StatusCode Pythia8_i::genInitialize() { ...@@ -184,7 +184,7 @@ StatusCode Pythia8_i::genInitialize() {
return StatusCode::FAILURE; return StatusCode::FAILURE;
} }
} }
}catch(CommandException err){ }catch(const CommandException& err){
ATH_MSG_ERROR(err.what()); ATH_MSG_ERROR(err.what());
return StatusCode::FAILURE; return StatusCode::FAILURE;
} }
......
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