Commit be9821fe authored by Scott Snyder's avatar Scott Snyder Committed by scott snyder
Browse files

TrigConfigSvc: Fix gcc8 compilation warnings.

gcc8 compilation warnings: catching polymorphic exceptions via value.
parent 2b9f2abe
......@@ -337,7 +337,7 @@ TrigConf::HLTConfigSvc::queryInterface( const InterfaceID& riid, void** ppvIF )
try {
*ppvIF = dynamic_cast<IHLTConfigSvc*>( this );
}
catch( std::bad_cast ) {
catch( const std::bad_cast& ) {
return StatusCode::FAILURE;
}
sc = StatusCode::SUCCESS;
......
......@@ -201,7 +201,7 @@ LVL1ConfigSvc::queryInterface( const InterfaceID& riid, void** ppvIF ) {
if( riid == ILVL1ConfigSvc::interfaceID() ) {
try {
*ppvIF = dynamic_cast<ILVL1ConfigSvc*>( this );
} catch( bad_cast ) {
} catch( const bad_cast& ) {
return StatusCode::FAILURE;
}
sc = StatusCode::SUCCESS;
......
Supports Markdown
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