forked from qt-creator/qt-creator
Extensionsystem: Modernize
modernize-use-auto modernize-use-nullptr modernize-use-override modernize-use-equals-default Change-Id: I20b4508e98ad3f8d6cd0ca2339bfc4c7dcb2ef2c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -182,7 +182,7 @@ PluginSpec::PluginSpec()
|
||||
PluginSpec::~PluginSpec()
|
||||
{
|
||||
delete d;
|
||||
d = 0;
|
||||
d = nullptr;
|
||||
}
|
||||
|
||||
/*!
|
||||
@@ -963,7 +963,7 @@ bool PluginSpecPrivate::loadLibrary()
|
||||
+ QString::fromLatin1(": ") + loader.errorString();
|
||||
return false;
|
||||
}
|
||||
IPlugin *pluginObject = qobject_cast<IPlugin*>(loader.instance());
|
||||
auto *pluginObject = qobject_cast<IPlugin*>(loader.instance());
|
||||
if (!pluginObject) {
|
||||
hasError = true;
|
||||
errorString = QCoreApplication::translate("PluginSpec", "Plugin is not valid (does not derive from IPlugin)");
|
||||
@@ -1065,6 +1065,6 @@ void PluginSpecPrivate::kill()
|
||||
if (!plugin)
|
||||
return;
|
||||
delete plugin;
|
||||
plugin = 0;
|
||||
plugin = nullptr;
|
||||
state = PluginSpec::Deleted;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user