From 7b3b118a80d191aff2f96e332139c058fc95760d Mon Sep 17 00:00:00 2001 From: Axel Naumann Date: Thu, 28 Aug 2014 17:04:31 +0200 Subject: [PATCH] Do not store PCMs for anonymous classes. --- core/utils/src/rootclingTCling.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/utils/src/rootclingTCling.cxx b/core/utils/src/rootclingTCling.cxx index 3ce11a1..09e76e8 100644 --- a/core/utils/src/rootclingTCling.cxx +++ b/core/utils/src/rootclingTCling.cxx @@ -56,7 +56,9 @@ void InitializeStreamerInfoROOTFile(const char *filename) extern "C" void AddStreamerInfoToROOTFile(const char *normName) { - gClassesToStore.emplace_back(normName); + // Filter unnamed and (anonymous) classes. + if (normName && normName[0] && normName[0] != '(') + gClassesToStore.emplace_back(normName); } extern "C" -- 1.8.2