QBluetoothDeviceDiscoveryAgent: use QMap::asKeyValueRange()
Instead of iterating over the map keys() and calling value(key) for
each of them.
The possibility for improvement was discovered when analyzing Axivion
Qt-RangeForLoopReference warning in the second for loop, which was
copying QString instead of taking it by const ref (see the linked
Axivion issue).
Axivion-Id: qt_Add-ons_qtbluetooth_dev_linux:SV93
Task-number: QTBUG-144754
Pick-to: 6.11 6.8
Change-Id: Idfcf62e3b330a548f19c05cafef0caf0d2403cd1
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>