Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassFiller.cc: do not use obsolete edmplugin::PluginCapabilities #9857

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions IOPool/Streamer/src/ClassFiller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
#include "FWCore/Utilities/interface/DebugMacros.h"
#include "FWCore/Utilities/interface/DictionaryTools.h"
#include "FWCore/Utilities/interface/TypeID.h"
#include "FWCore/PluginManager/interface/PluginCapabilities.h"

#include "FWCore/Utilities/interface/TypeWithDict.h"

#include "TClass.h"

Expand All @@ -26,7 +25,10 @@ namespace edm {

void loadCap(std::string const& name) {
FDEBUG(1) << "Loading dictionary for " << name << "\n";
edmplugin::PluginCapabilities::get()->load(dictionaryPlugInPrefix() + name);
TypeWithDict typedict = TypeWithDict::byName(name);
if (!typedict) {
throw cms::Exception("DictionaryMissingClass") << "The dictionary of class '" << name << "' is missing!";
}
TClass* cl = TClass::GetClass(name.c_str());
loadType(TypeID(*cl->GetTypeInfo()));
}
Expand Down