From 4200a13b75a8b66f735c399a72a4c8d2f572df2f Mon Sep 17 00:00:00 2001 From: sss <sss@karma> Date: Tue, 4 Mar 2025 10:57:26 -0500 Subject: [PATCH] BoostedJetTaggers: Fix cppcheck warnings. Redundant string conversions. --- Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx | 2 +- Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx b/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx index 5b100c7b4bdb..2e6b0667d1a6 100644 --- a/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx +++ b/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerBase.cxx @@ -283,7 +283,7 @@ StatusCode JSSTaggerBase::getConfigReader() { std::string configPath; if ( m_calibArea.compare("Local") == 0 ) { - configPath = PathResolverFindCalibFile(m_configFile.c_str()); + configPath = PathResolverFindCalibFile(m_configFile); } else if ( m_calibArea.find("eos") != std::string::npos) { configPath = PathResolverFindCalibFile((m_calibArea+"/"+m_configFile).c_str()); diff --git a/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx b/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx index 67d5a705181b..7e8103160341 100644 --- a/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx +++ b/Reconstruction/Jet/BoostedJetTaggers/Root/JSSTaggerUtils.cxx @@ -75,7 +75,7 @@ StatusCode JSSTaggerUtils::initialize(){ // init tool std::string ModelPath = ""; if ( m_calibArea.compare("Local") == 0 ) { - ModelPath = PathResolverFindCalibFile(ConstTaggerFileName.c_str()); + ModelPath = PathResolverFindCalibFile(ConstTaggerFileName); } else if ( m_calibArea.find("eos") != std::string::npos) { ModelPath = (ConstTaggerFileName); @@ -115,7 +115,7 @@ StatusCode JSSTaggerUtils::initialize(){ // init tool std::string ModelPath = ""; if ( m_calibArea.compare("Local") == 0 ) { - ModelPath = PathResolverFindCalibFile(HLTaggerFileName.c_str()); + ModelPath = PathResolverFindCalibFile(HLTaggerFileName); } else if ( m_calibArea.find("eos") != std::string::npos) { ModelPath = (HLTaggerFileName); -- GitLab