From 1f80e100bbe54e3ab185f3107debad69f6aceb08 Mon Sep 17 00:00:00 2001 From: Berthold Stoeger Date: Sun, 11 Feb 2018 17:02:50 +0100 Subject: 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 --- desktop-widgets/btdeviceselectiondialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/desktop-widgets/btdeviceselectiondialog.cpp b/desktop-widgets/btdeviceselectiondialog.cpp index a029765e5..89fd34b53 100644 --- a/desktop-widgets/btdeviceselectiondialog.cpp +++ b/desktop-widgets/btdeviceselectiondialog.cpp @@ -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); } } -- cgit v1.2.3-70-g09d2