1
0
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:
f4exb 2019-05-20 03:36:16 +02:00
parent 8fd864aadf
commit 1e881d0b2f
2 changed files with 3 additions and 5 deletions

View File

@ -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
{

View File

@ -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)
{ }
};