summaryrefslogtreecommitdiff
path: root/src/plugins/qmljseditor/qmljsfindreferences.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@theqtcompany.com>2016-02-08 16:26:19 +0100
committerEike Ziller <eike.ziller@theqtcompany.com>2016-02-10 10:58:55 +0000
commit72af6b7834f69cf6380b6df407c70914a3e7550d (patch)
tree756858f17d8450b2ae7a8ebd29da38126cb85f05 /src/plugins/qmljseditor/qmljsfindreferences.cpp
parentece316fb648155414d2fddada32b7cb9445c49c7 (diff)
downloadqt-creator-72af6b7834f69cf6380b6df407c70914a3e7550d.tar.gz
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>
Diffstat (limited to 'src/plugins/qmljseditor/qmljsfindreferences.cpp')
-rw-r--r--src/plugins/qmljseditor/qmljsfindreferences.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/qmljseditor/qmljsfindreferences.cpp b/src/plugins/qmljseditor/qmljsfindreferences.cpp
index a5c994265f..6c7ff6eb13 100644
--- a/src/plugins/qmljseditor/qmljsfindreferences.cpp
+++ b/src/plugins/qmljseditor/qmljsfindreferences.cpp
@@ -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);
}