Commit 7ec434ce 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.


Former-commit-id: be9821fe
parent 071013d0
...@@ -337,7 +337,7 @@ TrigConf::HLTConfigSvc::queryInterface( const InterfaceID& riid, void** ppvIF ) ...@@ -337,7 +337,7 @@ TrigConf::HLTConfigSvc::queryInterface( const InterfaceID& riid, void** ppvIF )
try { try {
*ppvIF = dynamic_cast<IHLTConfigSvc*>( this ); *ppvIF = dynamic_cast<IHLTConfigSvc*>( this );
} }
catch( std::bad_cast ) { catch( const std::bad_cast& ) {
return StatusCode::FAILURE; return StatusCode::FAILURE;
} }
sc = StatusCode::SUCCESS; sc = StatusCode::SUCCESS;
......
...@@ -201,7 +201,7 @@ LVL1ConfigSvc::queryInterface( const InterfaceID& riid, void** ppvIF ) { ...@@ -201,7 +201,7 @@ LVL1ConfigSvc::queryInterface( const InterfaceID& riid, void** ppvIF ) {
if( riid == ILVL1ConfigSvc::interfaceID() ) { if( riid == ILVL1ConfigSvc::interfaceID() ) {
try { try {
*ppvIF = dynamic_cast<ILVL1ConfigSvc*>( this ); *ppvIF = dynamic_cast<ILVL1ConfigSvc*>( this );
} catch( bad_cast ) { } catch( const bad_cast& ) {
return StatusCode::FAILURE; return StatusCode::FAILURE;
} }
sc = StatusCode::SUCCESS; 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