forked from qt-creator/qt-creator
runAsync: Remove ResultType template parameter.
It is now deduced from either the type of the QFutureInterface<ResultType> function argument, or the return type. Change-Id: Iddab3cc329206c649a6e55a44b2de2d406701dee Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
This commit is contained in:
@@ -891,10 +891,8 @@ void FindReferences::findUsages(const QString &fileName, quint32 offset)
|
||||
{
|
||||
ModelManagerInterface *modelManager = ModelManagerInterface::instance();
|
||||
|
||||
QFuture<Usage> result = Utils::runAsync<Usage>(
|
||||
&find_helper, modelManager->workingCopy(),
|
||||
modelManager->snapshot(), fileName, offset,
|
||||
QString());
|
||||
QFuture<Usage> result = Utils::runAsync(&find_helper, modelManager->workingCopy(),
|
||||
modelManager->snapshot(), fileName, offset, QString());
|
||||
m_watcher.setFuture(result);
|
||||
}
|
||||
|
||||
@@ -908,10 +906,8 @@ void FindReferences::renameUsages(const QString &fileName, quint32 offset,
|
||||
if (newName.isNull())
|
||||
newName = QLatin1String("");
|
||||
|
||||
QFuture<Usage> result = Utils::runAsync<Usage>(
|
||||
&find_helper, modelManager->workingCopy(),
|
||||
modelManager->snapshot(), fileName, offset,
|
||||
newName);
|
||||
QFuture<Usage> result = Utils::runAsync(&find_helper, modelManager->workingCopy(),
|
||||
modelManager->snapshot(), fileName, offset, newName);
|
||||
m_watcher.setFuture(result);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user