From 8219a300b1c6d0aca5bc7dc49adfccd87f6d36ad Mon Sep 17 00:00:00 2001 From: shahoian Date: Fri, 29 Jun 2018 10:51:22 +0200 Subject: [PATCH] Fix in addition of template fwd declaration in rootmap --- core/dictgen/src/rootcling_impl.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/dictgen/src/rootcling_impl.cxx b/core/dictgen/src/rootcling_impl.cxx index a049e7a..9e6dae4 100644 --- a/core/dictgen/src/rootcling_impl.cxx +++ b/core/dictgen/src/rootcling_impl.cxx @@ -2742,15 +2742,16 @@ bool ProcessAndAppendIfNotThere(const std::string &el, { std::stringstream elStream(el); std::string tmp; + bool added = false; while (getline(elStream, tmp, '\n')) { // Add if not there if (el_set.insert(tmp).second && !tmp.empty()) { el_list.push_back(tmp); - return true; + added = true; } } - return false; + return added; } //////////////////////////////////////////////////////////////////////////////// -- 2.7.4