Skip to content
Snippets Groups Projects
Commit 6a7702ca authored by scott snyder's avatar scott snyder
Browse files

Pythia8_i: Fix clang warnings.

Spurious copies in range for loops.
parent f3c13042
No related branches found
No related tags found
No related merge requests found
/* /*
Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
*/ */
#include "Pythia8_i/Pythia8_i.h" #include "Pythia8_i/Pythia8_i.h"
#include "Pythia8_i/UserProcessFactory.h" #include "Pythia8_i/UserProcessFactory.h"
...@@ -175,19 +175,19 @@ StatusCode Pythia8_i::genInitialize() { ...@@ -175,19 +175,19 @@ StatusCode Pythia8_i::genInitialize() {
} }
} }
for(const std::pair<std::string, double> &param : Pythia8_UserHooks::UserHooksFactory::userSettings<double>()){ for(const std::pair<const std::string, double> &param : Pythia8_UserHooks::UserHooksFactory::userSettings<double>()){
m_pythia->settings.addParm(param.first, param.second, false, false, 0., 0.); m_pythia->settings.addParm(param.first, param.second, false, false, 0., 0.);
} }
for(const std::pair<std::string, int> &param : Pythia8_UserHooks::UserHooksFactory::userSettings<int>()){ for(const std::pair<const std::string, int> &param : Pythia8_UserHooks::UserHooksFactory::userSettings<int>()){
m_pythia->settings.addMode(param.first, param.second, false, false, 0., 0.); m_pythia->settings.addMode(param.first, param.second, false, false, 0., 0.);
} }
for(const std::pair<std::string, int> &param : Pythia8_UserHooks::UserHooksFactory::userSettings<bool>()){ for(const std::pair<const std::string, bool> &param : Pythia8_UserHooks::UserHooksFactory::userSettings<bool>()){
m_pythia->settings.addFlag(param.first, param.second); m_pythia->settings.addFlag(param.first, param.second);
} }
for(const std::pair<std::string, std::string> &param : Pythia8_UserHooks::UserHooksFactory::userSettings<std::string>()){ for(const std::pair<const std::string, std::string> &param : Pythia8_UserHooks::UserHooksFactory::userSettings<std::string>()){
m_pythia->settings.addWord(param.first, param.second); m_pythia->settings.addWord(param.first, param.second);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment