summaryrefslogtreecommitdiff
path: root/src/plugins/languageclient/languageclientmanager.cpp
diff options
context:
space:
mode:
authorDavid Schulz <david.schulz@qt.io>2018-11-20 07:45:22 +0100
committerDavid Schulz <david.schulz@qt.io>2018-11-20 07:57:22 +0000
commite52ea7771f1b373f30210937d718e262c64eab97 (patch)
tree5074a70f4724393f2ae3ebe29dfcb2f069b295b4 /src/plugins/languageclient/languageclientmanager.cpp
parentf73ed6bb54d29855740cb52040682a6c6792fe97 (diff)
downloadqt-creator-e52ea7771f1b373f30210937d718e262c64eab97.tar.gz
LSP: simplify request response type
Instead of always defining the templates of the response type by hand add a using construct in the Request where all the template types are known. Change-Id: I0dc00bd9aef9c37c9454e35aca200a30fcf2ebda Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'src/plugins/languageclient/languageclientmanager.cpp')
-rw-r--r--src/plugins/languageclient/languageclientmanager.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/languageclient/languageclientmanager.cpp b/src/plugins/languageclient/languageclientmanager.cpp
index ddb024f371..ca5cdbbb05 100644
--- a/src/plugins/languageclient/languageclientmanager.cpp
+++ b/src/plugins/languageclient/languageclientmanager.cpp
@@ -324,7 +324,7 @@ void LanguageClientManager::findLinkAt(const Utils::FileName &filePath,
const Position pos(cursor);
TextDocumentPositionParams params(document, pos);
GotoDefinitionRequest request(params);
- request.setResponseCallback([callback](const Response<GotoResult, LanguageClientNull> &response){
+ request.setResponseCallback([callback](const GotoDefinitionRequest::Response &response){
if (Utils::optional<GotoResult> _result = response.result()) {
const GotoResult result = _result.value();
if (Utils::holds_alternative<std::nullptr_t>(result))