NetworkTracePoller: fix a warning by explicitly capturing 'this'
Without this:
packages/modules/Connectivity/service-t/native/libs/libnetworkstats/NetworkTracePoller.cpp:42:35: warning: implicit capture of 'this' with a capture default of '=' is deprecated [-Wdeprecated-this-capture]
42 | runner->PostDelayedTask([=]() { PollAndSchedule(runner, poll_ms); }, poll_ms);
| ^
packages/modules/Connectivity/service-t/native/libs/libnetworkstats/NetworkTracePoller.cpp:42:28: note: add an explicit capture of 'this' to capture '*this' by reference
42 | runner->PostDelayedTask([=]() { PollAndSchedule(runner, poll_ms); }, poll_ms);
| ^
| , this
Test: TreeHugger
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I703f2e33948c226c43e170abc793b8a58438eccf
1 file changed