Cleanup: use constructor directly instead of move-assignment
Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
7b320fc859
commit
1127a425de
@ -682,7 +682,7 @@ void WinBluetoothDeviceDiscoveryAgent::run()
|
||||
deviceAddress.truncate(BTH_ADDR_PRETTY_STRING_LEN);
|
||||
|
||||
// Create an object with information about the discovered device
|
||||
QBluetoothDeviceInfo deviceInfo = QBluetoothDeviceInfo(QBluetoothAddress(deviceAddress), deviceName, 0);
|
||||
QBluetoothDeviceInfo deviceInfo(QBluetoothAddress(deviceAddress), deviceName, 0);
|
||||
|
||||
// Raise a signal with information about the found remote device
|
||||
emit deviceDiscovered(deviceInfo);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user