summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-05-12 11:05:02 +0200
committerMarc Mutz <marc.mutz@kdab.com>2016-05-12 09:36:22 +0000
commit2011b61dcb93fe0069869eb558a15db22c2845b0 (patch)
treeea5be9531d33a85692a870ef0ee6c2f704f61302 /src
parentcaded2edf69e8a60897653ace1e10b72199c7427 (diff)
QLowEnergyController: fix new uses of 0 as null pointer constant
Change-Id: Ie5088c2c3a9b4c44696ac84cff7ac0c8b03c735b Task-number: QTBUG-45291 Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'src')
-rw-r--r--src/bluetooth/qlowenergycontroller.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/bluetooth/qlowenergycontroller.h b/src/bluetooth/qlowenergycontroller.h
index 14d5c280..4ee07531 100644
--- a/src/bluetooth/qlowenergycontroller.h
+++ b/src/bluetooth/qlowenergycontroller.h
@@ -98,8 +98,8 @@ public:
QObject *parent = Q_NULLPTR); // TODO Qt 6 remove ctor
static QLowEnergyController *createCentral(const QBluetoothDeviceInfo &remoteDevice,
- QObject *parent = 0);
- static QLowEnergyController *createPeripheral(QObject *parent = 0);
+ QObject *parent = nullptr);
+ static QLowEnergyController *createPeripheral(QObject *parent = nullptr);
// TODO: Allow to set connection timeout (disconnect when no data has been exchanged for n seconds).
@@ -127,7 +127,7 @@ public:
const QLowEnergyAdvertisingData &scanResponseData = QLowEnergyAdvertisingData());
void stopAdvertising();
- QLowEnergyService *addService(const QLowEnergyServiceData &service, QObject *parent = 0);
+ QLowEnergyService *addService(const QLowEnergyServiceData &service, QObject *parent = nullptr);
void requestConnectionUpdate(const QLowEnergyConnectionParameters &parameters);
@@ -147,7 +147,7 @@ Q_SIGNALS:
void connectionUpdated(const QLowEnergyConnectionParameters &parameters);
private:
- explicit QLowEnergyController(QObject *parent = 0); // For the peripheral role.
+ explicit QLowEnergyController(QObject *parent = nullptr); // For the peripheral role.
Q_DECLARE_PRIVATE(QLowEnergyController)
QLowEnergyControllerPrivate *d_ptr;