From 0929478b7f810d7e97bb48cd66c39bb332bf7683 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Fri, 21 Aug 2020 15:58:27 +0100 Subject: [PATCH] BLE: Move constructor from transport to private section --- connectivity/FEATURE_BLE/include/ble/BLE.h | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/connectivity/FEATURE_BLE/include/ble/BLE.h b/connectivity/FEATURE_BLE/include/ble/BLE.h index 03dfe282b9..0c8ebba196 100644 --- a/connectivity/FEATURE_BLE/include/ble/BLE.h +++ b/connectivity/FEATURE_BLE/include/ble/BLE.h @@ -164,16 +164,6 @@ public: */ static BLE &Instance(); - /** - * Constructor for a handle to a BLE instance (the BLE stack). BLE handles - * are thin wrappers around a transport object (that is, ptr. to - * ble::BLEInstanceBase). - * - * @param[in] transport Ble transport used for the BLE instance. - * @note Cordio supports only one instance. - */ - BLE(ble::BLEInstanceBase &transport); - /** * Get a reference to the BLE singleton corresponding to a given interface. * @@ -455,6 +445,16 @@ public: private: friend class ble::BLEInstanceBase; + /** + * Constructor for a handle to a BLE instance (the BLE stack). BLE handles + * are thin wrappers around a transport object (that is, ptr. to + * ble::BLEInstanceBase). + * + * @param[in] transport Ble transport used for the BLE instance. + * @note Cordio supports only one instance. + */ + BLE(ble::BLEInstanceBase &transport); + /** * Implementation of init() [internal to BLE_API]. * @@ -467,8 +467,8 @@ private: private: // Prevent copy construction and copy assignment of BLE. - BLE(const BLE &); - BLE &operator=(const BLE &); + BLE(const BLE &) = delete; + BLE &operator=(const BLE &) = delete; private: ble::BLEInstanceBase &transport; /* The device-specific backend */