From 093845219917d0342b0986032a93a64fcb023f2f Mon Sep 17 00:00:00 2001 From: David Schulz Date: Thu, 6 May 2021 12:27:00 +0200 Subject: [PATCH] LanguageClient: remove unnecessary member function calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I27e626cdef9c8f645cc1ea2f79ec6cfda09342fb Reviewed-by: Thorbjørn Lindeijer --- src/plugins/languageclient/semantichighlightsupport.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/languageclient/semantichighlightsupport.cpp b/src/plugins/languageclient/semantichighlightsupport.cpp index d1326ee8a99..25b4c27c396 100644 --- a/src/plugins/languageclient/semantichighlightsupport.cpp +++ b/src/plugins/languageclient/semantichighlightsupport.cpp @@ -397,10 +397,10 @@ void SemanticTokenSupport::handleSemanticTokensDelta( for (const auto start = it + edit.start() + currentDelta; it != start; ++it) newData.append(*it); const QList insertData = edit.data().value_or(QList()); - newData.append(edit.data().value_or(QList())); + newData.append(insertData); const int deleteCount = edit.deleteCount(); currentDelta += insertData.size() - deleteCount; - it += edit.deleteCount(); + it += deleteCount; } for (const auto end = data.end(); it != end; ++it) newData.append(*it);