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:
Alessandro Portale
2018-07-19 23:19:33 +02:00
parent 6655f37259
commit e21b146776
8 changed files with 42 additions and 50 deletions

View File

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