mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 09:48:45 -05:00
Removed useless reference to the QPluginLoader in the Plugin structure
This commit is contained in:
parent
8fd864aadf
commit
1e881d0b2f
@ -163,9 +163,9 @@ void PluginManager::loadPluginsDir(const QDir& dir)
|
|||||||
qWarning() << "PluginManager::loadPluginsDir: " << qPrintable(loader->errorString());
|
qWarning() << "PluginManager::loadPluginsDir: " << qPrintable(loader->errorString());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (plugin != 0)
|
if (plugin)
|
||||||
{
|
{
|
||||||
m_plugins.append(Plugin(fileName, loader, plugin));
|
m_plugins.append(Plugin(fileName, plugin));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
@ -42,12 +42,10 @@ public:
|
|||||||
struct Plugin
|
struct Plugin
|
||||||
{
|
{
|
||||||
QString filename;
|
QString filename;
|
||||||
QPluginLoader* loader;
|
|
||||||
PluginInterface* pluginInterface;
|
PluginInterface* pluginInterface;
|
||||||
|
|
||||||
Plugin(const QString& _filename, QPluginLoader* pluginLoader, PluginInterface* _plugin) :
|
Plugin(const QString& _filename, PluginInterface* _plugin) :
|
||||||
filename(_filename),
|
filename(_filename),
|
||||||
loader(pluginLoader),
|
|
||||||
pluginInterface(_plugin)
|
pluginInterface(_plugin)
|
||||||
{ }
|
{ }
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user