From 725b5e0383089ff0f5fb566860513f2b390807ad Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 6 Nov 2022 04:02:14 +0100 Subject: [PATCH] Try to fix clang-tidy --- src/Cache.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Cache.cpp b/src/Cache.cpp index 41dd507c..5cb87a2f 100644 --- a/src/Cache.cpp +++ b/src/Cache.cpp @@ -420,7 +420,8 @@ Cache::loadSecretsFromStore( connect(job, &QKeychain::ReadPasswordJob::finished, this, - [this, name, toLoad, job, name_, internal, callback](QKeychain::Job *) mutable { + [this, name, toLoad, job, name_ = name_, internal = internal, callback]( + QKeychain::Job *) mutable { nhlog::db()->debug("Finished reading '{}'", toLoad.begin()->first); const QString secret = job->textData(); if (job->error() && job->error() != QKeychain::Error::EntryNotFound) {