forked from qt-creator/qt-creator
CppTools: Remove processEvents call from follow symbol
processEvents is a bad way of dealing with asynchronous requests. Use QFutureWatcher for that purpose. Change-Id: I3839cb9db80a6d391f6af1178e96986a325b7b99 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
This commit is contained in:
@@ -100,16 +100,17 @@ void CppRefactoringEngine::findUsages(const CursorInEditor &data,
|
||||
}
|
||||
}
|
||||
|
||||
CppRefactoringEngine::Link CppRefactoringEngine::globalFollowSymbol(
|
||||
void CppRefactoringEngine::globalFollowSymbol(
|
||||
const CursorInEditor &data,
|
||||
Utils::ProcessLinkCallback &&processLinkCallback,
|
||||
const CPlusPlus::Snapshot &snapshot,
|
||||
const CPlusPlus::Document::Ptr &documentFromSemanticInfo,
|
||||
SymbolFinder *symbolFinder,
|
||||
bool inNextSplit) const
|
||||
{
|
||||
FollowSymbolUnderCursor followSymbol;
|
||||
return followSymbol.findLink(data, true, snapshot, documentFromSemanticInfo,
|
||||
symbolFinder, inNextSplit);
|
||||
return followSymbol.findLink(data, std::move(processLinkCallback), true, snapshot,
|
||||
documentFromSemanticInfo, symbolFinder, inNextSplit);
|
||||
}
|
||||
|
||||
} // namespace CppEditor
|
||||
|
||||
Reference in New Issue
Block a user