summaryrefslogtreecommitdiffstats
path: root/src/bluetooth/qlowenergycontroller_win.cpp
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2017-06-01 16:36:30 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2017-06-07 11:42:40 +0000
commit78e0a1c6a5823a76bb85f04724dd4b1df80a8c44 (patch)
tree3f7bec5cb94a3d47ef04740be848881a54666ac6 /src/bluetooth/qlowenergycontroller_win.cpp
parentd86490915aaa42c04d4dc1ad866e5bb1836d4272 (diff)
Replace 'forever' macro with 'for (;;)' statement
Change-Id: I402b856be06db0e55ec2efb21fc6cb8f35e57a0c Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/bluetooth/qlowenergycontroller_win.cpp')
-rw-r--r--src/bluetooth/qlowenergycontroller_win.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bluetooth/qlowenergycontroller_win.cpp b/src/bluetooth/qlowenergycontroller_win.cpp
index a71f9327..f01b99d7 100644
--- a/src/bluetooth/qlowenergycontroller_win.cpp
+++ b/src/bluetooth/qlowenergycontroller_win.cpp
@@ -100,7 +100,7 @@ static QString getServiceSystemPath(const QBluetoothUuid &serviceUuid, int *syst
QString foundSystemPath;
DWORD index = 0;
- forever {
+ for (;;) {
SP_DEVICE_INTERFACE_DATA deviceInterfaceData;
::ZeroMemory(&deviceInterfaceData, sizeof(deviceInterfaceData));
deviceInterfaceData.cbSize = sizeof(deviceInterfaceData);
@@ -227,7 +227,7 @@ static QVector<BTH_LE_GATT_SERVICE> enumeratePrimaryGattServices(
QVector<BTH_LE_GATT_SERVICE> foundServices;
USHORT servicesCount = 0;
- forever {
+ for (;;) {
const HRESULT hr = ::BluetoothGATTGetServices(
hDevice,
servicesCount,
@@ -257,7 +257,7 @@ static QVector<BTH_LE_GATT_CHARACTERISTIC> enumerateGattCharacteristics(
QVector<BTH_LE_GATT_CHARACTERISTIC> foundCharacteristics;
USHORT characteristicsCount = 0;
- forever {
+ for (;;) {
const HRESULT hr = ::BluetoothGATTGetCharacteristics(
hService,
gattService,
@@ -288,7 +288,7 @@ static QByteArray getGattCharacteristicValue(
QByteArray valueBuffer;
USHORT valueBufferSize = 0;
- forever {
+ for (;;) {
const HRESULT hr = ::BluetoothGATTGetCharacteristicValue(
hService,
gattCharacteristic,
@@ -351,7 +351,7 @@ static QVector<BTH_LE_GATT_DESCRIPTOR> enumerateGattDescriptors(
QVector<BTH_LE_GATT_DESCRIPTOR> foundDescriptors;
USHORT descriptorsCount = 0;
- forever {
+ for (;;) {
const HRESULT hr = ::BluetoothGATTGetDescriptors(
hService,
gattCharacteristic,
@@ -382,7 +382,7 @@ static QByteArray getGattDescriptorValue(
QByteArray valueBuffer;
USHORT valueBufferSize = 0;
- forever {
+ for (;;) {
const HRESULT hr = ::BluetoothGATTGetDescriptorValue(
hService,
gattDescriptor,