Fix plugin macro that added quotes to things that were already strings causing identifiers to not match.
+ some debug logging
This commit is contained in:
parent
d86d278350
commit
4c3a2df65c
2 changed files with 2 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ std::shared_ptr<PluginModule> createPluginModule(QString name, QString ident)
|
||||||
#define REGISTER_PLUGIN_MODULE(module, name, ident) \
|
#define REGISTER_PLUGIN_MODULE(module, name, ident) \
|
||||||
namespace {\
|
namespace {\
|
||||||
std::weak_ptr<PluginModule> register_variable = createPluginModule<module>\
|
std::weak_ptr<PluginModule> register_variable = createPluginModule<module>\
|
||||||
(#name, #ident);}
|
(name, ident);}
|
||||||
|
|
||||||
|
|
||||||
#endif // PLUGIN_SUPPORTPLUGINMODULE_H
|
#endif // PLUGIN_SUPPORTPLUGINMODULE_H
|
||||||
|
|
|
||||||
|
|
@ -32,6 +32,7 @@ void PluginRegister::initModules()
|
||||||
|
|
||||||
void PluginRegister::registerModule(PluginModuleSPtr module)
|
void PluginRegister::registerModule(PluginModuleSPtr module)
|
||||||
{
|
{
|
||||||
|
qDebug() << "registerModule " << module->identifier();
|
||||||
m_moduleMap.emplace(module->identifier(), module);
|
m_moduleMap.emplace(module->identifier(), module);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue