mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue