From bdd879dbf335d105e7b22082967b3cfa79842da3 Mon Sep 17 00:00:00 2001 From: Chris Jones Date: Thu, 12 Dec 2013 14:21:20 -0600 Subject: [PATCH] Make static plugin maker instances const The maker classes used by the plugin system only have const interfaces so it is safe to make all the static instance of these classes const. This shows the intent better and allows the static analyzer to better understand what is happening. --- FWCore/PluginManager/interface/PluginFactory.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FWCore/PluginManager/interface/PluginFactory.h b/FWCore/PluginManager/interface/PluginFactory.h index e325855531e3e..e966638aee74b 100644 --- a/FWCore/PluginManager/interface/PluginFactory.h +++ b/FWCore/PluginManager/interface/PluginFactory.h @@ -99,5 +99,5 @@ namespace edmplugin {\ #define EDM_PLUGIN_SYM2(x,y) x ## y #define DEFINE_EDM_PLUGIN(factory,type,name) \ -[[cms::thread_safe]] static factory::PMaker EDM_PLUGIN_SYM(s_maker , __LINE__ ) (name) +static const factory::PMaker EDM_PLUGIN_SYM(s_maker , __LINE__ ) (name)