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:
eelke 2019-01-01 14:35:22 +01:00
parent d86d278350
commit 4c3a2df65c
2 changed files with 2 additions and 1 deletions

View file

@ -62,7 +62,7 @@ std::shared_ptr<PluginModule> createPluginModule(QString name, QString ident)
#define REGISTER_PLUGIN_MODULE(module, name, ident) \
namespace {\
std::weak_ptr<PluginModule> register_variable = createPluginModule<module>\
(#name, #ident);}
(name, ident);}
#endif // PLUGIN_SUPPORTPLUGINMODULE_H

View file

@ -32,6 +32,7 @@ void PluginRegister::initModules()
void PluginRegister::registerModule(PluginModuleSPtr module)
{
qDebug() << "registerModule " << module->identifier();
m_moduleMap.emplace(module->identifier(), module);
}