Cleanup: fix emits in WinBluetoothDeviceDiscoveryAgent
As far as I know, Qt's emit is defined to nothing. Thus, the construct "emit(lastError);" is compiled to "(lastError);", which is a no-op. Obviously "emit error(lastError)" was meant. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
1127a425de
commit
1f80e100bb
@ -668,7 +668,7 @@ void WinBluetoothDeviceDiscoveryAgent::run()
|
||||
// Get the last error and emit a signal
|
||||
lastErrorToString = qt_error_string();
|
||||
lastError = QBluetoothDeviceDiscoveryAgent::UnknownError;
|
||||
emit(lastError);
|
||||
emit error(lastError);
|
||||
|
||||
break;
|
||||
}
|
||||
@ -690,7 +690,7 @@ void WinBluetoothDeviceDiscoveryAgent::run()
|
||||
// Get the last error and emit a signal
|
||||
lastErrorToString = qt_error_string();
|
||||
lastError = QBluetoothDeviceDiscoveryAgent::UnknownError;
|
||||
emit(lastError);
|
||||
emit error(lastError);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user