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:
Berthold Stoeger 2018-02-11 17:02:50 +01:00 committed by Lubomir I. Ivanov
parent 1127a425de
commit 1f80e100bb

View file

@ -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);
}
}