From 4c849bc21d50e4338fdeb917599fb6ba93cfc2b9 Mon Sep 17 00:00:00 2001
From: Eike Ziller <eike.ziller@nokia.com>
Date: Tue, 20 Dec 2011 17:28:46 +0100
Subject: [PATCH] Fix warning.

Change-Id: I30ec590b86846f8fdcb0094a848e56002d590b7a
Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
---
 src/plugins/cpptools/cppfindreferences.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/cpptools/cppfindreferences.cpp b/src/plugins/cpptools/cppfindreferences.cpp
index c51428f328d..3f797943605 100644
--- a/src/plugins/cpptools/cppfindreferences.cpp
+++ b/src/plugins/cpptools/cppfindreferences.cpp
@@ -511,9 +511,9 @@ void CppFindReferences::setDependencyTable(const CPlusPlus::DependencyTable &new
 void CppFindReferences::createWatcher(const QFuture<Usage> &future, Find::SearchResult *search)
 {
     QFutureWatcher<Usage> *watcher = new QFutureWatcher<Usage>();
-    watcher->setFuture(future);
     watcher->setPendingResultsLimit(1);
     connect(watcher, SIGNAL(resultsReadyAt(int,int)), this, SLOT(displayResults(int,int)));
     connect(watcher, SIGNAL(finished()), this, SLOT(searchFinished()));
     m_watchers.insert(watcher, search);
+    watcher->setFuture(future);
 }
-- 
GitLab