Skip to content

Commit

Permalink
Fix Android build breakage
Browse files Browse the repository at this point in the history
Summary:
Fix the build error
```
fbcode/wangle/ssl/TLSCredProcessor.cpp:89:7: error: implicit capture of 'this' with a capture default of '=' is deprecated [-Werror,-Wdeprecated-this-capture]
   89 |       ticketFileUpdated(ticketFile_, password_);
      |       ^
fbcode/wangle/ssl/TLSCredProcessor.cpp:88:31: note: add an explicit capture of 'this' to capture '*this' by reference
   88 |     auto ticketsChangedCob = [=]() {
      |                               ^
      |                                , this
1 error generated.
```

Differential Revision: D65746673

fbshipit-source-id: 6ef3352183d0ba8de2e3e4114c5ba2917bbab253
  • Loading branch information
Peng Yunquan authored and facebook-github-bot committed Nov 11, 2024
1 parent bb9c420 commit cdb0724
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wangle/ssl/TLSCredProcessor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ void TLSCredProcessor::setTicketPathToWatch(
ticketFile_ = ticketFile;
password_ = password;
if (!ticketFile_.empty()) {
auto ticketsChangedCob = [=]() {
auto ticketsChangedCob = [this]() {
ticketFileUpdated(ticketFile_, password_);
};
poller_->addFileToTrack(ticketFile_, ticketsChangedCob);
Expand Down

0 comments on commit cdb0724

Please sign in to comment.