UpdateInfo: Fix implicit conversion to QString:

src\plugins\updateinfo\updateinfoplugin.cpp(127): error C2248: 'QString::QString': cannot access private member declared in class 'QString'

Change-Id: I4dfed40d14505fd5fae1cc87a08e1d58347f197d
Reviewed-by: Riho Pihlak <rpihlak@gmail.com>
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Kai Koehne
2016-04-25 12:27:48 +02:00
committed by Eike Ziller
parent 26ba9e62f3
commit ba75cf8b6d

View File

@@ -124,7 +124,7 @@ void UpdateInfoPlugin::startCheckForUpdates()
stopCheckForUpdates();
QProcessEnvironment env;
env.insert("QT_LOGGING_RULES", "*=false");
env.insert(QLatin1String("QT_LOGGING_RULES"), QLatin1String("*=false"));
d->m_checkUpdatesCommand = new ShellCommand(QString(), env);
connect(d->m_checkUpdatesCommand, &ShellCommand::stdOutText, this, &UpdateInfoPlugin::collectCheckForUpdatesOutput);
connect(d->m_checkUpdatesCommand, &ShellCommand::finished, this, &UpdateInfoPlugin::checkForUpdatesFinished);