From c6cb057a8dfa2771c9f92b0a88d1c752b7fd0592 Mon Sep 17 00:00:00 2001 From: scott snyder <snyder@bnl.gov> Date: Wed, 17 Oct 2018 16:37:26 +0200 Subject: [PATCH] VP1TrackSystems: Fix gcc8 warning. gcc8 warning: Catching polymorphic exception by value. --- .../VP1Systems/VP1TrackSystems/src/TrackPropagationHelper.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics/VP1/VP1Systems/VP1TrackSystems/src/TrackPropagationHelper.cxx b/graphics/VP1/VP1Systems/VP1TrackSystems/src/TrackPropagationHelper.cxx index 7442bf505ae6..e6a4fbd91db4 100644 --- a/graphics/VP1/VP1Systems/VP1TrackSystems/src/TrackPropagationHelper.cxx +++ b/graphics/VP1/VP1Systems/VP1TrackSystems/src/TrackPropagationHelper.cxx @@ -1,5 +1,5 @@ /* - Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration + Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration */ @@ -386,7 +386,7 @@ const Trk::TrackParameters * TrackPropagationHelper::Imp::extrapolateToNewPar( T try { // newpars = extrapolator->extrapolate(*trk,surf,Trk::anyDirection,false,hypo); // change this to extrapolate current param to surface. newpars = extrapolator->extrapolate(*prevpars,surf,Trk::alongMomentum,false,hypo); // change this to extrapolate current param to surface. - } catch (std::runtime_error e) { + } catch (const std::runtime_error& e) { theclass->message("Failure trying to use extrapolator for track (Exception thrown: " + QString(e.what())+")"); return 0; } -- GitLab