diff --git a/Control/Valkyrie/src/ValgrindAuditor.cxx b/Control/Valkyrie/src/ValgrindAuditor.cxx index 0477b4bccd07c1cfd5227d3ca51a2fa47f483a04..f9b07091158dbb30f34862955091166c5252e639 100644 --- a/Control/Valkyrie/src/ValgrindAuditor.cxx +++ b/Control/Valkyrie/src/ValgrindAuditor.cxx @@ -92,7 +92,7 @@ StatusCode ValgrindAuditor::initialize() try { m_algsRegEx.push_back( boost::regex(re) ); } - catch ( boost::regex_error ) { + catch ( const boost::regex_error& ) { msgStream() << MSG::ERROR << "Ignoring invalid regular expression: " << re << endmsg; } } @@ -276,7 +276,7 @@ namespace { try { nameEvt.first = boost::regex(s.substr(0,loc)); } - catch ( boost::regex_error ) { + catch ( const boost::regex_error& ) { return StatusCode::FAILURE; }