Skip to content

Commit 0929478

Browse files
committed
BLE: Move constructor from transport to private section
1 parent cf3ede0 commit 0929478

File tree

1 file changed

+12
-12
lines changed
  • connectivity/FEATURE_BLE/include/ble

1 file changed

+12
-12
lines changed

connectivity/FEATURE_BLE/include/ble/BLE.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,6 @@ class BLE {
164164
*/
165165
static BLE &Instance();
166166

167-
/**
168-
* Constructor for a handle to a BLE instance (the BLE stack). BLE handles
169-
* are thin wrappers around a transport object (that is, ptr. to
170-
* ble::BLEInstanceBase).
171-
*
172-
* @param[in] transport Ble transport used for the BLE instance.
173-
* @note Cordio supports only one instance.
174-
*/
175-
BLE(ble::BLEInstanceBase &transport);
176-
177167
/**
178168
* Get a reference to the BLE singleton corresponding to a given interface.
179169
*
@@ -455,6 +445,16 @@ class BLE {
455445
private:
456446
friend class ble::BLEInstanceBase;
457447

448+
/**
449+
* Constructor for a handle to a BLE instance (the BLE stack). BLE handles
450+
* are thin wrappers around a transport object (that is, ptr. to
451+
* ble::BLEInstanceBase).
452+
*
453+
* @param[in] transport Ble transport used for the BLE instance.
454+
* @note Cordio supports only one instance.
455+
*/
456+
BLE(ble::BLEInstanceBase &transport);
457+
458458
/**
459459
* Implementation of init() [internal to BLE_API].
460460
*
@@ -467,8 +467,8 @@ class BLE {
467467

468468
private:
469469
// Prevent copy construction and copy assignment of BLE.
470-
BLE(const BLE &);
471-
BLE &operator=(const BLE &);
470+
BLE(const BLE &) = delete;
471+
BLE &operator=(const BLE &) = delete;
472472

473473
private:
474474
ble::BLEInstanceBase &transport; /* The device-specific backend */

0 commit comments

Comments
 (0)