QmlJsEditor: Avoid QtConcurrent::run

Change-Id: Id95acdeb2be21721950c6926494a5d2e5a00d8bb
Reviewed-by: Marco Benelli <marco.benelli@theqtcompany.com>
Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
Eike Ziller
2016-02-02 13:27:31 +01:00
parent bbadda2f25
commit 7a9cc3499e
2 changed files with 3 additions and 3 deletions

View File

@@ -891,7 +891,7 @@ void FindReferences::findUsages(const QString &fileName, quint32 offset)
{
ModelManagerInterface *modelManager = ModelManagerInterface::instance();
QFuture<Usage> result = QtConcurrent::run(
QFuture<Usage> result = Utils::runAsync<Usage>(
&find_helper, modelManager->workingCopy(),
modelManager->snapshot(), fileName, offset,
QString());
@@ -908,7 +908,7 @@ void FindReferences::renameUsages(const QString &fileName, quint32 offset,
if (newName.isNull())
newName = QLatin1String("");
QFuture<Usage> result = QtConcurrent::run(
QFuture<Usage> result = Utils::runAsync<Usage>(
&find_helper, modelManager->workingCopy(),
modelManager->snapshot(), fileName, offset,
newName);