forked from qt-creator/qt-creator
warnings: Fix unused/unnecessary lambda capture
Change-Id: I1d0ed78da53c56f0a87bf35b1ee2480f9dfd330c Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -473,7 +473,7 @@ ClangdClient::ClangdClient(Project *project, const Utils::FilePath &jsonDbDir)
|
||||
}
|
||||
});
|
||||
|
||||
connect(this, &Client::initialized, this, [this] {
|
||||
connect(this, &Client::initialized, this, [] {
|
||||
auto currentDocumentFilter = static_cast<ClangdCurrentDocumentFilter *>(
|
||||
CppEditor::CppModelManager::instance()->currentDocumentFilter());
|
||||
currentDocumentFilter->updateCurrentClient();
|
||||
|
||||
@@ -304,7 +304,7 @@ CppEditor::BaseEditorDocumentProcessor *ClangModelManagerSupport::createEditorDo
|
||||
TextEditor::TextDocument *baseTextDocument)
|
||||
{
|
||||
const auto processor = new ClangEditorDocumentProcessor(baseTextDocument);
|
||||
const auto handleConfigChange = [this](const Utils::FilePath &fp,
|
||||
const auto handleConfigChange = [](const Utils::FilePath &fp,
|
||||
const BaseEditorDocumentParser::Configuration &config) {
|
||||
if (const auto client = clientForFile(fp))
|
||||
client->updateParserConfig(fp, config);
|
||||
@@ -598,7 +598,7 @@ void ClangModelManagerSupport::watchForExternalChanges()
|
||||
void ClangModelManagerSupport::watchForInternalChanges()
|
||||
{
|
||||
connect(Core::DocumentManager::instance(), &Core::DocumentManager::filesChangedInternally,
|
||||
this, [this](const Utils::FilePaths &filePaths) {
|
||||
this, [](const Utils::FilePaths &filePaths) {
|
||||
for (const Utils::FilePath &fp : filePaths) {
|
||||
ClangdClient * const client = clientForFile(fp);
|
||||
if (!client || client->documentForFilePath(fp))
|
||||
|
||||
Reference in New Issue
Block a user