From 11d0f0587c3481c086d70219fdb7796ab25073ea Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Wed, 3 Oct 2018 23:32:05 +0200 Subject: [PATCH] InDetPhysValMonitoring: Fix gcc8 warning. gcc8 warning: Catching polymorphic exception by value. Former-commit-id: c4d045807e2bb7845b90f3591836618389c6b530 --- .../src/InDetPhysValTruthDecoratorAlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InnerDetector/InDetValidation/InDetPhysValMonitoring/src/InDetPhysValTruthDecoratorAlg.cxx b/InnerDetector/InDetValidation/InDetPhysValMonitoring/src/InDetPhysValTruthDecoratorAlg.cxx index f977cd046f7..b6f1a3e8042 100644 --- a/InnerDetector/InDetValidation/InDetPhysValMonitoring/src/InDetPhysValTruthDecoratorAlg.cxx +++ b/InnerDetector/InDetValidation/InDetPhysValMonitoring/src/InDetPhysValTruthDecoratorAlg.cxx @@ -129,7 +129,7 @@ InDetPhysValTruthDecoratorAlg::decorateTruth(const xAOD::TruthParticle& particle const xAOD::TruthVertex* ptruthVertex(0); try{ ptruthVertex = particle.prodVtx(); - } catch (std::exception e) { + } catch (const std::exception& e) { if (not errorEmitted) { ATH_MSG_WARNING("A non existent production vertex was requested in calculating the track parameters d0 etc"); } -- GitLab