Skip to content

Commit 88a243e

Browse files
Update clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp
Co-authored-by: EugeneZelenko <[email protected]>
1 parent 8919fdb commit 88a243e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang-tools-extra/clang-tidy/modernize/UseStructuredBindingCheck.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ void UseStructuredBindingCheck::check(const MatchFinder::MatchResult &Result) {
386386
!Res.empty())
387387
InitE = Res[0].getNodeAs<Expr>("init_expr");
388388

389-
std::optional<TransferType> PairCaptureType =
389+
const std::optional<TransferType> PairCaptureType =
390390
getTransferType(*Result.Context, PairVar->getType(), InitE->getType());
391391
std::optional<TransferType> FirstVarCaptureType =
392392
getTransferType(*Result.Context, FirstVar->getType(),

0 commit comments

Comments
 (0)