diff options
Diffstat (limited to 'src/checks/level0/lambda-in-connect.cpp')
-rw-r--r-- | src/checks/level0/lambda-in-connect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checks/level0/lambda-in-connect.cpp b/src/checks/level0/lambda-in-connect.cpp index b0da926f..1ba1126f 100644 --- a/src/checks/level0/lambda-in-connect.cpp +++ b/src/checks/level0/lambda-in-connect.cpp @@ -71,7 +71,7 @@ void LambdaInConnect::VisitStmt(clang::Stmt *stmt) for (auto capture : captures) { if (capture.getCaptureKind() == clang::LCK_ByRef) { - VarDecl *declForCapture = capture.getCapturedVar(); + auto *declForCapture = capture.getCapturedVar(); if (declForCapture && declForCapture != receiverDecl && clazy::isValueDeclInFunctionContext(declForCapture)) emitWarning(capture.getLocation(), "captured local variable by reference might go out of scope before lambda is called"); } |