From 4bae90379939dbc7b3f9f695f179b9043f258b9e Mon Sep 17 00:00:00 2001 From: Frank Berghaus <frank.berghaus@cern.ch> Date: Wed, 6 Jan 2021 09:31:47 +0100 Subject: [PATCH] Remove const classifier in static_cast The qualifier present in the type for the static_cast generates a compiler warning. Remove the const classifier as it is troublesome and unnecessary. --- Generators/EvgenProdTools/src/CountHepMC.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Generators/EvgenProdTools/src/CountHepMC.cxx b/Generators/EvgenProdTools/src/CountHepMC.cxx index c0f8d0ff266..c8d7dafda5e 100644 --- a/Generators/EvgenProdTools/src/CountHepMC.cxx +++ b/Generators/EvgenProdTools/src/CountHepMC.cxx @@ -127,9 +127,9 @@ else{ { // change the channel number where /Generation/Parameters are found auto newChannelNumber = - static_cast< const CondAttrListCollection::ChanNum >(m_newRunNumber); + static_cast< CondAttrListCollection::ChanNum >(m_newRunNumber); auto oldChannelNumber = - static_cast< const CondAttrListCollection::ChanNum >(oldRunNumber); + static_cast< CondAttrListCollection::ChanNum >(oldRunNumber); const char* key = "/Generation/Parameters"; const IOVMetaDataContainer * iovContainer = nullptr; -- GitLab