mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -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());
|
||||
}
|
||||
|
||||
if (plugin != 0)
|
||||
if (plugin)
|
||||
{
|
||||
m_plugins.append(Plugin(fileName, loader, plugin));
|
||||
m_plugins.append(Plugin(fileName, plugin));
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -42,12 +42,10 @@ public:
|
||||
struct Plugin
|
||||
{
|
||||
QString filename;
|
||||
QPluginLoader* loader;
|
||||
PluginInterface* pluginInterface;
|
||||
|
||||
Plugin(const QString& _filename, QPluginLoader* pluginLoader, PluginInterface* _plugin) :
|
||||
Plugin(const QString& _filename, PluginInterface* _plugin) :
|
||||
filename(_filename),
|
||||
loader(pluginLoader),
|
||||
pluginInterface(_plugin)
|
||||
{ }
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user