diff --git a/PhysicsTools/PatAlgos/plugins/PATObjectUserDataEmbedder.cc b/PhysicsTools/PatAlgos/plugins/PATObjectUserDataEmbedder.cc index c63200ff64826..87ef4f6924f52 100644 --- a/PhysicsTools/PatAlgos/plugins/PATObjectUserDataEmbedder.cc +++ b/PhysicsTools/PatAlgos/plugins/PATObjectUserDataEmbedder.cc @@ -75,7 +75,7 @@ namespace pat { static void fillDescriptions(edm::ConfigurationDescriptions &descriptions) { edm::ParameterSetDescription desc; desc.add("src"); - for (const std::string &what : {"userFloats", "userInts", "userIntFromBools", "userCands"}) { + for (auto &&what : {"userFloats", "userInts", "userIntFromBools", "userCands"}) { edm::ParameterSetDescription descNested; descNested.addWildcard("*"); desc.add(what, descNested);