Skip to content
Snippets Groups Projects
Commit fe94cdc8 authored by Giacomo Strangolino's avatar Giacomo Strangolino
Browse files

static constexpr const char file_name[32] is not ok: use string with file name instead

parent bd3ec347
No related branches found
No related tags found
No related merge requests found
......@@ -40,9 +40,9 @@ Alarmmanager::Alarmmanager(CumbiaPool *cumbia_pool, QWidget *parent) :
CuPluginLoader loader;
QObject **qo = nullptr;
tree_i = loader.get<QuTreeModelPluginInterface>(QuTreeModelPluginInterface::file_name, qo);
tree_i = loader.get<QuTreeModelPluginInterface>("libqutreemodel-plugin.so", qo);
if(!tree_i)
perr("%s: plugin \"%s\" not found", __FUNCTION__, QuTreeModelPluginInterface::file_name);
perr("%s: plugin \"%s\" not found", __FUNCTION__, "libqutreemodel-plugin.so");
else {
QuTreeModelI *mi = tree_i->instantiate({"Alarm"}, this);
m_model = mi->qmodel();
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment