mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-29 20:30:54 +00:00
Changed: #1193 code cleanup.
This commit is contained in:
parent
c7ed914c01
commit
65d69747e4
4 changed files with 71 additions and 72 deletions
|
@ -33,11 +33,19 @@
|
||||||
namespace ExtensionSystem
|
namespace ExtensionSystem
|
||||||
{
|
{
|
||||||
|
|
||||||
CPluginSpec::CPluginSpec():
|
CPluginSpec::CPluginSpec()
|
||||||
|
: _location(""),
|
||||||
|
_filePath(""),
|
||||||
|
_fileName(""),
|
||||||
|
_name(""),
|
||||||
|
_version(""),
|
||||||
|
_vendor(""),
|
||||||
|
_description(""),
|
||||||
_state(State::Invalid),
|
_state(State::Invalid),
|
||||||
_hasError(false),
|
_hasError(false),
|
||||||
_plugin(NULL),
|
_errorString(""),
|
||||||
_pluginManager(NULL)
|
_plugin(0),
|
||||||
|
_pluginManager(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -98,16 +106,6 @@ QString CPluginSpec::errorString() const
|
||||||
|
|
||||||
bool CPluginSpec::setFileName(const QString &fileName)
|
bool CPluginSpec::setFileName(const QString &fileName)
|
||||||
{
|
{
|
||||||
_name = _version
|
|
||||||
= _vendor
|
|
||||||
= _description
|
|
||||||
= _location
|
|
||||||
= _filePath
|
|
||||||
= _fileName
|
|
||||||
= "";
|
|
||||||
_state = State::Invalid;
|
|
||||||
_hasError = false;
|
|
||||||
_errorString = "";
|
|
||||||
QFile file(fileName);
|
QFile file(fileName);
|
||||||
if (!file.exists())
|
if (!file.exists())
|
||||||
return reportError(QCoreApplication::translate("CPluginSpec", "File does not exist: %1").arg(file.fileName()));
|
return reportError(QCoreApplication::translate("CPluginSpec", "File does not exist: %1").arg(file.fileName()));
|
||||||
|
@ -209,7 +207,7 @@ void CPluginSpec::kill()
|
||||||
if (!_plugin)
|
if (!_plugin)
|
||||||
return;
|
return;
|
||||||
delete _plugin;
|
delete _plugin;
|
||||||
_plugin = NULL;
|
_plugin = 0;
|
||||||
_state = State::Deleted;
|
_state = State::Deleted;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -96,6 +96,7 @@ public:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
Loading…
Reference in a new issue