Commit f7c98fa6 authored by Jarek Kobus's avatar Jarek Kobus

Replace assignment of null QString() with a call to clear().

Looks like it's a kind of rule in QtCreator code.

Change-Id: I92fb60055273d66d6e459245836df5b90d7a3cc6
Reviewed-by: default avatarEike Ziller <eike.ziller@theqtcompany.com>
Reviewed-by: default avatarTim Jenssen <tim.jenssen@theqtcompany.com>
parent 427170e5
......@@ -339,7 +339,7 @@ bool SharedMemory::initKeyInternal()
return false;
}
m_errorString = QString();
m_errorString.clear();
m_error = QSharedMemory::NoError;
return true;
}
......
......@@ -141,7 +141,7 @@ void UpdateInfoPlugin::stopCheckForUpdates()
if (!d->m_checkUpdatesCommand)
return;
d->m_collectedOutput = QString();
d->m_collectedOutput.clear();
d->m_checkUpdatesCommand->disconnect();
d->m_checkUpdatesCommand->cancel();
d->m_checkUpdatesCommand = 0;
......@@ -203,7 +203,7 @@ bool UpdateInfoPlugin::initialize(const QStringList & /* arguments */, QString *
if (!QFileInfo(d->m_maintenanceTool).isExecutable()) {
*errorMessage = tr("The maintenance tool at \"%1\" is not an executable. Check your installation.")
.arg(d->m_maintenanceTool);
d->m_maintenanceTool = QString();
d->m_maintenanceTool.clear();
return false;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment