Cleanup: use constructor directly instead of move-assignment

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2018-02-11 17:00:00 +01:00 committed by Lubomir I. Ivanov
parent 7b320fc859
commit 1127a425de

View file

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