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>
commitd750f7339b541c0370b0d9efeb429de0a844791d
parent66571ba974c8e8216331c28e918bb153ec013727
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeWed, 8 Apr 2026 09:48:08 +0200