diff options
author | Oliver Wolff <oliver.wolff@qt.io> | 2019-03-18 13:30:18 +0100 |
---|---|---|
committer | Oliver Wolff <oliver.wolff@qt.io> | 2019-03-19 09:50:36 +0000 |
commit | 09c476732bd79dcfa03bd8273fbd0eafb4b95a53 (patch) | |
tree | 98c4ffb271f93ad80331ce2bf2fb0ee92a0970dc | |
parent | bb80398caacdae6e319cb17d4953e3800ff277f2 (diff) |
Fix warning about initialized but not referenced variable
Change-Id: Iabb236577d813bf72b2237fedc60b894fae06bc4
Reviewed-by: Alex Blasche <alexander.blasche@qt.io>
-rw-r--r-- | src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp index a353f5e3..18ea9495 100644 --- a/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp +++ b/src/bluetooth/qbluetoothdevicediscoveryagent_winrt.cpp @@ -250,7 +250,8 @@ void QWinRTBluetoothDeviceDiscoveryWorker::gatherMultipleDeviceInformation(quint { for (quint32 i = 0; i < deviceCount; ++i) { ComPtr<IDeviceInformation> device; - HRESULT hr = devices->GetAt(i, &device); + HRESULT hr; + hr = devices->GetAt(i, &device); Q_ASSERT_SUCCEEDED(hr); gatherDeviceInformation(device.Get(), mode); } |