forked from qt-creator/qt-creator
Various plugins: Fix some more C++20 warnings about [=] captures
Change-Id: If20aac4320c84096a07d67cc137886638286acf8 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -1474,7 +1474,7 @@ void ClangdTestHighlighting::test()
|
||||
const auto lessThan = [=](const TextEditor::HighlightingResult &r, int) {
|
||||
return Text::positionInText(doc->document(), r.line, r.column) < startPos;
|
||||
};
|
||||
const auto findResults = [=] {
|
||||
const auto findResults = [this, endPos, lessThan, doc] {
|
||||
TextEditor::HighlightingResults results;
|
||||
auto it = std::lower_bound(m_results.cbegin(), m_results.cend(), 0, lessThan);
|
||||
if (it == m_results.cend())
|
||||
|
||||
Reference in New Issue
Block a user