Skip to content

Commit 1b83bf1

Browse files
DavidsastresasDonLakeFlyer
authored andcommitted
Vehicle.cc: add this context in connect lambda functions
1 parent 89c232c commit 1b83bf1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Vehicle/Vehicle.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3997,7 +3997,7 @@ void Vehicle::startTimerRevertAllowTakeover()
39973997
// Disconnect any previous connections to avoid multiple handlers
39983998
disconnect(&_timerRevertAllowTakeover, &QTimer::timeout, nullptr, nullptr);
39993999

4000-
connect(&_timerRevertAllowTakeover, &QTimer::timeout, [this](){
4000+
connect(&_timerRevertAllowTakeover, &QTimer::timeout, this, [this](){
40014001
if (MAVLinkProtocol::instance()->getSystemId() == _sysid_in_control) {
40024002
this->requestOperatorControl(false);
40034003
}
@@ -4041,7 +4041,7 @@ void Vehicle::requestOperatorControlStartTimer(int requestTimeoutMsecs)
40414041
_timerRequestOperatorControl.setInterval(requestTimeoutMsecs);
40424042
// Disconnect any previous connections to avoid multiple handlers
40434043
disconnect(&_timerRequestOperatorControl, &QTimer::timeout, nullptr, nullptr);
4044-
connect(&_timerRequestOperatorControl, &QTimer::timeout, [this](){
4044+
connect(&_timerRequestOperatorControl, &QTimer::timeout, this, [this](){
40454045
_sendControlRequestAllowed = true;
40464046
emit sendControlRequestAllowedChanged(true);
40474047
});

0 commit comments

Comments
 (0)